Page 1 of 2
GAMELIB [LINUX / WINDOWS] (English)
Posted: Tue Feb 05, 2008 8:01 pm
by Num3
Cap.Bator made this nice game lib, using sdl, you can get it
>>here<< ...
Since i've found a few bugs, and my french is ... let's say ... bad, i created this thread...
Posted: Tue Feb 05, 2008 8:06 pm
by Num3
BUGS
- 1. TTF font support is very bad... If you refresh it, size changes, and letters get cutted.
2. There is no way to hide the mouse cursor!
Posted: Wed Feb 06, 2008 8:27 pm
by Anonymous
Yes , and Thanks for this post.
For the first bug , i will use in the future a bitmap font.
For the second "bug?" i missed the function

Posted: Sat Mar 08, 2008 3:11 pm
by walker
tried to use the lib on Linux... but the OpenLibrary command fails on
SGUI.so (even the car demo doesn't work....)
tried to use an absolute path... but no success...

any idea? (permissions are set to read the lib....)
Posted: Sat Mar 08, 2008 10:28 pm
by Anonymous
Is not strange , you must have a SDL, SDL_ttf , SDL_image library.

Posted: Sun Mar 09, 2008 5:27 pm
by walker
it's working now... very
impressive and

stuff ... thanks a lot for sharing..
I'll have a closer look....
Posted: Sun Mar 09, 2008 6:55 pm
by Rook Zimbabwe
Cpl Bator... This is just kick ass!!! Excellent work!!!
Your Games website is great as well!!!
Keep up the good work.
Will post if I have a prob.
Posted: Mon Mar 10, 2008 5:37 am
by Rook Zimbabwe
Cpl. Bator, this is outstanding... I haven't found the ISO example yet, but I think I know how to do it.
I modified one of the graphics files... I could not resist driving my old jeep (so I added a racing number and...)
http://www.bluemesapc.com/image/Chassis.png
Click to DL

Posted: Wed Mar 12, 2008 12:28 pm
by SofT MANiAC
funny

Posted: Sat Apr 26, 2008 3:14 am
by zxtunes.com
SDL support display many sprites from one texure?
Posted: Sat Apr 26, 2008 4:46 am
by Rook Zimbabwe
Well the statement ended in a question mark...
I am sorry but I don't understand what the question is in your statement?
Posted: Sat Apr 26, 2008 10:37 am
by Anonymous
You can load " Meta texture " , you change the UV coordinate for display the good sprite.
GameLib will be integrated to Gears3D....
Posted: Sat Apr 26, 2008 7:16 pm
by zxtunes.com
Cpl.Bator wrote:You can load " Meta texture " , you change the UV coordinate for display the good sprite.
Tell more in detail please.
I have not found the description in Help file.

Posted: Sat Apr 26, 2008 7:41 pm
by zxtunes.com
SetGLSpriteVertexColor - not worked. ->
Code: Select all
IncludeFile "GAMELIB.pbi"
Engine = InitEngine()
OpenGLScreen(Engine,640,480,32,0,"01-SIMPLE SPRITE [KEY A & Q FOR SET ALPHA]")
SpritePointer = LoadGLSprite("Medias/Ubuntu2.png",255,0,255)
a.f = 1
Repeat
ClearGLScreen(Engine,64 ,128 , 255 )
SetGLSpriteVertexColor(SpritePointer,255,160,128,64)
Event = PoolEvent(Engine)
Select Event
Case #SDL_QUIT ;the button "close window" is pressed
EndGL(Engine):End
Case #SDL_KEYDOWN ;get the last key
key = KeyEvent(Engine)
EndSelect
Rot.f+0.5
;SetGLSpriteAlpha(SpritePointer,a)
RotateGLSprite(SpritePointer,Rot)
DisplayGLSprite(SpritePointer,64,0)
If key = #SDLK_ESCAPE : EndGL(Engine): End :EndIf
If key = #SDLK_a : a+0.01 : EndIf
If key = #SDLK_q : a-0.01 : EndIf
SwapBuffers(Engine)
ForEver
There is no difference with "SetGLSpriteVertexColor"
or without "SetGLSpriteVertexColor"
Posted: Sat Apr 26, 2008 7:44 pm
by zxtunes.com
03-StarField.pb = Slide Show.
it normal?
Graphic cart: GeForce MX400