.comment-link {margin-left:.6em;}

Thursday, October 11, 2007

 

wingraph extended

The purpose of this molule is to provide some extension to make wingraph (pascal graphics library for free pascal) more crt like. Hopefully making pascal (or delphi) the programming language of choice for retro projects. I am using this for a roguelike that I am building but hopefully it has many uses... I am also willing to add other routines and links to this if they are usefull. I may also port the idea to other graphics libraries for pascal if there is an interest (and enough documentation for it.. This page is currently under construction so check back for more details. This small library is available at
wingraph extended extensions and more examples for the free programming library can be posted at dexrow bbs



routines


crt_out_text


color_crt_out_text

input_line

crt_out_text_rewrite

color_crt_out_text_rewrite


Usefull sites

Wingraph homepage

swain article on wingraph

Labels: ,


Monday, September 10, 2007

 

pascal plus screens

I am looking into WinGraph and how it works.. Looks like thier is an example of alegro (pascal) in the roguelike magazine that had two issues. The licence for wingraph is restrictive and does not let you profit from it but because I am advertising supported I may do a demo app (free but not for resale muhaha).. I noticed that the code snippits did not give the barest app instead they gave you something that you have to debug.. (python may be worth while as a way to generate a code generating template for it). Here is my extended version of the barest example in free pascal.


uses wingraph;
var
gd,gm : smallint;
begin;
gd:=Detect;
InitGraph(gd,gm,'');
//
repeat until CloseGraphRequest; //this waits for close button to be clicked
CloseGraph;
end.

Labels: ,


This page is powered by Blogger. Isn't yours?