pouët.net

Simple OGL question (Visual Basic)

category: general [glöplog]
 
Right, please don't troll about Visual Basic but answer my question if possible :P

I'm just starting with VB + OGL (I've worked with OGL In FreeBASIC before, no problem there :\) and I'm kinda stuck... I open a 800x600 window and want to put a 512x512 texture on the screen. Look at my example program...
Instead of displaying the texture, a grey quad is shown. If I don't load the texture, it is white (doh!). However, if I remove the "glMatrixMode mmModelView" line, the texture is shown, but not in original size and also my window coordinates are reset! 0,0 is centered and not in the upper-left corner as i want it to be (i have reasons)...
Please, can anyone help me?
okay, semms like the problem has fixed itself... I've shifted some commands in the EnableOpenGL sub and now i get a nice texture... :)
Since you're handling textures coordinates by yourself, you don't need the both lines :
glEnable glcTextureGenS
glEnable glcTextureGenT
added on the 2008-03-15 16:39:59 by DrSKULL DrSKULL
Yep, I recognized that those lines were actually not neccessary when I compared two different loading rountines. Also, I had to swap some lines in order to get a working code...
One more question: What's the difference when drawing stuff doing it the way I'm doing it and using
Code:glNewList listname, lstCompile

Is there any difference in speed or some other useful benefit?
google for "opengl display list" and find out
added on the 2008-03-15 17:04:55 by skrebbel skrebbel

login