Now, I know that I have not set up anything properly here really, but Freebasic makes it even simpler than C++ to initialise a window for opengl drawing.
Downside? It takes more room than tinyptc already.
So bearing in mind that there are a lot of things I never set up here (because I am still learning), I thought I'd post my progress, it opens an opengl screen and draws a large riangle.
Please don't ask for an exe, this is for the freebasic guys so they know how to open a gl window with no troubles.
'
' This is a test to initially open a window in freebasic for Opengl and
' just simply put a triangle onto it.
'
' By Shockwave
'
'===============================================================================
OPTION STATIC
OPTION EXPLICIT
#INCLUDE "GL/gl.bi"
#INCLUDE "GL/glu.bi"
' INCLUDE WINDOWS.BI AFTER GL, GLU.
#INCLUDE "WINDOWS.BI"
'===============================================================================
' MODE 20 = 1024*768 - 24 BIT - DEFAULT PAGES -
' FLAG = 3 (2 for gl drawing + 1 for full screen) FOR GL DRAWING
'===============================================================================
SCREEN 19,24,,3
WHILE((GETASYNCKEYSTATE(VK_ESCAPE)<> -32767) )
' DRAW A TRIANGLE;
GLBEGIN GL_TRIANGLES
GLCOLOR3F 1.0, 1.0, 0.0 ' YELLOW
GLVERTEX3F 0.0, 1.0, 0.0 ' TOP
GLCOLOR3F 0.0, 1.0, 1.0 ' TURQOISE
GLVERTEX3F 1.0, -1.0, 0.0 ' RIGHT
GLCOLOR3F 1.0, 0.0, 1.0 ' PURPLE
GLVERTEX3F -1.0, -1.0, 0.0 ' LEFT
GLEND
FLIP
' CLEAR SCREEN + DEPTH BUFFER
GLCLEAR GL_COLOR_BUFFER_BIT OR GL_DEPTH_BUFFER_BIT
WEND
END