'OpenGL text without mapping or font
Const True
= -1, False
= 0
_Title "Demo2 of Text in OpenGL:point by point"
glRun = False
sBkc = White
sFgc = Green
PrepareTxt "Hello"
ShowSourceTxt
Print "Now a text in OpenGL" glInit = True
glRun = True
WidhTxt = 40
HeighTxt = 12
PaintPoint Xs + (sXp * Size), Ys + (sYp * Size), glFgc, Size
' OpenGl-----------------------------
' every time _GL runs it must set values for screen
copyTxt 1, 1, Green, 1
copyTxt 100, 200, Red, 2
copyTxt 200, 100, Black, 4
glInit = False
_glDisable _GL_MULTISAMPLE
' disable antialiasing method that hides one pixel ' in Opengl Anti aliasing method is ON for default