Hi all ,
this time i have improved and added HighLevelAsm with FPU.
here is a snippet code taken from opnegl2.o2bas example in asm folder
''========================================================================
'' DrawScene() - Draw the scene (a rotating torus)
''========================================================================
;---------
DrawScene:
;---------
glPushMatrix
; Rotate the object
push edi
^ esp -= 12
^ edi = esp
^ st = dword rot_x
^ st *= double half
^ float [edi ] = st
^ st = dword rot_y
^ st *= double half
^ float [edi+4] = st
^ st = dword rot_z
^ st *= double half
^ float [edi+8] = st
; user rotation
glRotatef [edi ], 1.0, 0.0, 0.0
glRotatef [edi+4], 0.0, 1.0, 0.0
glRotatef [edi+8], 0.0, 0.0, 1.0
^ esp += 12
pop edi
; Set model color (used for orthogonal views, lighting disabled)
glColor4fv &model_diffuse
'' Set model material (used for perspective view, lighting enabled)
(
def GL_AMBIENT 0x1200
def GL_DIFFUSE 0x1201
def GL_SPECULAR 0x1202
def GL_SHININESS 0x1601
def GL_FRONT 0x0404
glMaterialfv GL_FRONT, GL_DIFFUSE, &model_diffuse
glMaterialfv GL_FRONT, GL_SPECULAR, &model_specular
glMaterialf GL_FRONT, GL_SHININESS, model_shininess
)
call DrawTorus
glPopMatrix
ret ; end of drawscene
o2 !4