I have a question:
how can i use OpenGL?
should i download something ... or include something?
i have this code:
Code: Select all
#include once "GL/gl.bi"
#include once "GL/glu.bi"
screenres width,height,depth,,&h2 OR fullscreen
glMatrixMode(GL_PROJECTION)
glLoadIdentity
glViewport(0,0,width,height)
glOrtho(0,width,height,0,-128,128)
glMatrixMode(GL_MODELVIEW)
glEnable(GL_CULL_FACE)
glCullFace(GL_BACK)
glEnable GL_TEXTURE_2D
glLoadIdentity
glEnable(GL_DEPTH_TEST)
glDepthFunc(GL_LESS)
glEnable(GL_ALPHA_TEST)
glAlphaFunc(GL_GREATER, 0.1)
do
glClear GL_COLOR_BUFFER_BIT OR GL_DEPTH_BUFFER_BIT
glBegin GL_QUADS
glVertex2i 0, 50 '' LINKS UNTEN (1. Koordinate)
glVertex2i 50, 50 '' RECHTS UNTEN (2. Koordinate)
glVertex2i 50, 0 '' RECHTS OBEN (3. Koordinate)
glVertex2i 0, 0 '' LINKS OBEN (4. Koordinate)
glEnd
glFlush ' Verarbeitung der Befehle
flip
screensync
loop until multikey(&h01) ' Verlasse die Schleife sobald Escape gedrückt wird
but this is not working?
pls, can someone help me :(
Thx a lot :)
Master-F-