some fixes & optimizations

git-svn-id: svn://kolibrios.org@5353 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
IgorA
2015-01-05 19:13:01 +00:00
parent 89cf5a21d6
commit 334d99f484
8 changed files with 128 additions and 106 deletions

View File

@@ -27,6 +27,13 @@ proc glVertex2f, x:dword, y:dword
ret
endp
align 4
proc glVertex2fv uses eax, v:dword
mov eax,[v]
stdcall glVertex4f,[eax],[eax+4],0.0,1.0
ret
endp
align 4
proc glVertex3f, x:dword, y:dword, z:dword
stdcall glVertex4f,[x],[y],[z],1.0
@@ -40,6 +47,13 @@ proc glVertex3fv uses eax, v:dword
ret
endp
align 4
proc glVertex4fv uses eax, v:dword
mov eax,[v]
stdcall glVertex4f,[eax],[eax+4],[eax+8],[eax+12]
ret
endp
; glNormal
align 4
@@ -548,7 +562,7 @@ endl
ret
endp
;/* lightening */
; lightening
align 4
proc glMaterialfv uses eax ecx, mode:dword, type:dword, v:dword
@@ -721,7 +735,7 @@ endl
ret
endp
;/* clear */
; clear
align 4
proc glClear uses eax, mask:dword
@@ -775,7 +789,7 @@ endl
ret
endp
;/* textures */
; textures
align 4
proc glTexImage2D uses ecx edi esi,\
@@ -879,7 +893,7 @@ endl
ret
endp
;/* selection */
; selection
align 4
proc glInitNames uses eax
@@ -954,7 +968,7 @@ endl
ret
endp
;/* Special Functions */
; Special Functions
align 4
proc glCallList uses eax, list:dword