GAMELIB [LINUX / WINDOWS] (English)
-
Num3
- PureBasic Expert

- Posts: 2812
- Joined: Fri Apr 25, 2003 4:51 pm
- Location: Portugal, Lisbon
- Contact:
GAMELIB [LINUX / WINDOWS] (English)
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...
Since i've found a few bugs, and my french is ... let's say ... bad, i created this thread...
-
Anonymous
- Rook Zimbabwe
- Addict

- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
- Rook Zimbabwe
- Addict

- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
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

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

-
SofT MANiAC
- Enthusiast

- Posts: 142
- Joined: Mon Sep 17, 2007 10:28 am
- Location: P.O.P
- Contact:
- zxtunes.com
- Enthusiast

- Posts: 375
- Joined: Wed Apr 23, 2008 7:51 am
- Location: Saint-Petersburg, Russia
- Contact:
- Rook Zimbabwe
- Addict

- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
-
Anonymous
- zxtunes.com
- Enthusiast

- Posts: 375
- Joined: Wed Apr 23, 2008 7:51 am
- Location: Saint-Petersburg, Russia
- Contact:
- zxtunes.com
- Enthusiast

- Posts: 375
- Joined: Wed Apr 23, 2008 7:51 am
- Location: Saint-Petersburg, Russia
- Contact:
SetGLSpriteVertexColor - not worked. ->
There is no difference with "SetGLSpriteVertexColor"
or without "SetGLSpriteVertexColor"
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)
ForEveror without "SetGLSpriteVertexColor"
- zxtunes.com
- Enthusiast

- Posts: 375
- Joined: Wed Apr 23, 2008 7:51 am
- Location: Saint-Petersburg, Russia
- Contact:

