*** FIXED ****
Sooooo...I'v got another problem...
This code is about as simple as GL gets and should work without issue, i get to see the triangle but for some reason it looks lie my screen tries resizing and then the program crashes...please test it and if you get similar results or not please let me know...
Thanks
UnseenCode: QB64: [Select]
_FPS 30 ' // Set maximium frames per second '// Initial camera settings CamZ! = -10 _LIMIT 30 SUB _GL _glEnable _GL_DEPTH_TEST ' // Enables depth buffer for hidden surface removal '// Setup a perspective view _glMatrixMode _GL_PROJECTION _glMatrixMode _GL_MODELVIEW '// Set the view to the cameras position '// Draw the triangle _glBegin _GL_TRIANGLES
Code: QB64: [Select]
Unless your intention is to make a screen 0 text screen 400x300 characters in size? 6400x2400 pixels or so?
@Unseen Machine It is good to see you back. We are currently curating good Programs into the Samples section. When you have completed this batch of Open_GL demos, please create a post in Programs and we may place these into Samples Gallery / SUB_GL.
Are you positive it has ever worked in GL QB64 and your not thinking of SDL QB64?
Ive just checked with the most recent SDL (0.954?)
Ive just checked with the most recent SDL (0.954?) verison from the historical section and it compiled without any problems so i think we've found the point at which it stopped working...now how do (i'd love to say 'WE' but i've got no idea where to start) you guys fix this? is it possible?
Thanks
Unseen
I tried 'Tests' in QB64 v0.954h (the last SDL version I have) and it failed. I have most SDL versions backuped on a drive somewhere, so I can dig some oldies out and try them. I think I even have that special QB64 version of just Qbasic commands, no QB64 keywards added.
- Dav