Code: Select all
#include once "GL/gl.bi"
#include once "GL/glu.bi"
#include once "fbgfx.bi"
Using FB
dim shared as byte rasters(12) =>{0, 0, 24, 24, 0, 0, 24, 24, 24, 24, 24,24,24}
declare sub myinit()
declare sub display()
declare sub myReshape()
screenres 640,480,32,1,GFX_OPENGL
sub myinit()
glPixelStorei(GL_UNPACK_ALIGNMENT, 1)
glClearColor(0.0, 0.0, 0.0, 0.0)
end sub
sub display()
glClear(GL_COLOR_BUFFER_BIT)
glColor3f(1.0, 1.0, 1.0)
glRasterPos2i (20.5, 20.5)
glBitmap 8, 13, 0.0, 0.0, 10.0, 0.0, @rasters(0)
flip()
end sub
sub myReshape()
glViewport(0, 0, 640, 480)
glMatrixMode(GL_PROJECTION)
glLoadIdentity()
glOrtho(0, 640, 0, 480, -1.0, 1.0)
glMatrixMode(GL_MODELVIEW)
end sub
myReshape()
do
display()
loop