Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Minion

#226
GLBasic - en / Fonts
2007-Mar-11
Dunno if this topic has cropped up before, but ive had a scan and cant seem to find anything relating to it. So I shall just come right out and ask ...

Is it possible to use more than 1 font within a game ?

Id like several sets of the same font but in multiple colours. Other than coding my own font routines, is there any other way ?
#227
Lazarus,

slight improvement on your code function, ive tested it it it appears to be about a quater faster than yours (will help if you intend to draw lots of circles).

Code (glbasic) Select
// ------------------------------------------------------------- //
// -=#  CIRC  #=-
// ------------------------------------------------------------- //
FUNCTION circ: x, y, r, c
// These values are defined LOCAL:
// x, y, r, c

x1=SIN(0)*r
y1=COS(0)*r
FOR j=1 TO 360
x2=SIN(j)*r
y2=COS(j)*r
DRAWLINE x+x1,y+y1,x+x2,y+y2,c
x1=x2
y1=y2
NEXT

ENDFUNCTION // CIRC
#228
Hiya all,

Can someone help with this error I get when compiling ...

linking:
ld: cannot find -lpng
*** FATAL ERROR - Please post this output in the forum

I have no idea what it means but would love to sort this out so I can crack on with coding !

ANy help would be greatly appreciated