Subversion Repositories Kolibri OS

Rev

Rev 5256 | Rev 6108 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5256 Rev 5353
Line 10... Line 10...
10
include 'zgl.inc'
10
include 'zgl.inc'
11
include 'zmath.asm'
11
include 'zmath.asm'
12
include 'clip.asm'
12
include 'clip.asm'
13
include 'vertex.asm'
13
include 'vertex.asm'
14
include 'api.asm'
14
include 'api.asm'
15
include 'list.asm'
15
include 'list.asm' ;gl_add_op
16
include 'init.asm'
16
include 'init.asm'
17
include 'matrix.asm'
17
include 'matrix.asm' ;gl_print_matrix
18
include 'texture.asm'
18
include 'texture.asm'
19
include 'misc.asm'
19
include 'misc.asm'
20
include 'clear.asm'
20
include 'clear.asm'
21
include 'light.asm'
21
include 'light.asm'
22
include 'select.asm'
22
include 'select.asm'
Line 34... Line 34...
34
include 'kosgl.asm'
34
include 'kosgl.asm'
35
include 'glu.asm'
35
include 'glu.asm'
Line 36... Line 36...
36
 
36
 
37
if DEBUG
37
if DEBUG
38
include 'info_fun_float.inc'
-
 
39
end if
-
 
40
 
-
 
41
; ***
-
 
42
glVertex2d: ;(double ,double)
-
 
43
glVertex2fv: ;(float *)
-
 
44
glVertex2dv: ;(double *)
-
 
45
glVertex3d: ;(double ,double ,double)
-
 
46
glVertex3dv: ;(double *)
-
 
47
glVertex4d: ;(double ,double ,double, double )
-
 
48
glVertex4fv: ;(float *)
-
 
49
glVertex4dv: ;(double *)
-
 
50
glColor3d: ;(double ,double ,double)
-
 
51
glColor3dv: ;(double *)
-
 
52
glColor4d: ;(double ,double ,double, double )
-
 
53
glColor4dv: ;(double *)
-
 
54
glNormal3d: ;(double ,double ,double)
-
 
55
glNormal3dv: ;(double *)
-
 
56
glTexCoord1f: ;(float)
-
 
57
glTexCoord1d: ;(double)
-
 
58
glTexCoord1fv: ;(float *)
-
 
59
glTexCoord1dv: ;(double *)
-
 
60
glTexCoord2d: ;(double ,double)
-
 
61
glTexCoord2dv: ;(double *)
-
 
62
glTexCoord3f: ;(float ,float ,float)
-
 
63
glTexCoord3d: ;(double ,double ,double)
-
 
64
glTexCoord3fv: ;(float *)
-
 
65
glTexCoord3dv: ;(double *)
-
 
66
glTexCoord4d: ;(double ,double ,double, double )
-
 
67
glTexCoord4fv: ;(float *)
-
 
68
glTexCoord4dv: ;(double *)
-
 
69
glGenTextures: ;(int n, unsigned int *textures)
-
 
70
glDeleteTextures: ;(int n, const unsigned int *textures)
-
 
71
glGetIntegerv: ;(int pname,int *params)
-
 
Line 72... Line -...
72
glGetFloatv: ;(int pname, float *v)
-
 
73
 
38
include 'info_fun_float.inc'
74
if DEBUG
39
 
75
align 4
40
align 4
76
txt_nl db 13,10,0
41
txt_nl db 13,10,0
77
txt_sp db ' ',0
42
txt_sp db ' ',0
Line 138... Line 103...
138
		mov byte[edi],0 ;в конец строки ставим 0, что-бы не вылазил мусор
103
		mov byte[edi],0 ;в конец строки ставим 0, что-бы не вылазил мусор
139
	@@:
104
	@@:
140
	ret	   ;пока в стеке храниться кол-во вызовов то столько раз мы и будем вызываться
105
	ret	   ;пока в стеке храниться кол-во вызовов то столько раз мы и будем вызываться
141
end if
106
end if
Line -... Line 107...
-
 
107
 
-
 
108
; ***
-
 
109
glVertex2d: ;(double ,double)
-
 
110
glVertex2dv: ;(double *)
-
 
111
glVertex3d: ;(double ,double ,double)
-
 
112
glVertex3dv: ;(double *)
-
 
113
glVertex4d: ;(double ,double ,double, double )
-
 
114
glVertex4dv: ;(double *)
-
 
115
glColor3d: ;(double ,double ,double)
-
 
116
glColor3dv: ;(double *)
-
 
117
glColor4d: ;(double ,double ,double, double )
-
 
118
glColor4dv: ;(double *)
-
 
119
glNormal3d: ;(double ,double ,double)
-
 
120
glNormal3dv: ;(double *)
-
 
121
glTexCoord1f: ;(float)
-
 
122
glTexCoord1d: ;(double)
-
 
123
glTexCoord1fv: ;(float *)
-
 
124
glTexCoord1dv: ;(double *)
-
 
125
glTexCoord2d: ;(double ,double)
-
 
126
glTexCoord2dv: ;(double *)
-
 
127
glTexCoord3f: ;(float ,float ,float)
-
 
128
glTexCoord3d: ;(double ,double ,double)
-
 
129
glTexCoord3fv: ;(float *)
-
 
130
glTexCoord3dv: ;(double *)
-
 
131
glTexCoord4d: ;(double ,double ,double, double )
-
 
132
glTexCoord4fv: ;(float *)
-
 
133
glTexCoord4dv: ;(double *)
-
 
134
glGenTextures: ;(int n, unsigned int *textures)
-
 
135
glDeleteTextures: ;(int n, const unsigned int *textures)
-
 
136
glGetIntegerv: ;(int pname,int *params)
-
 
137
glGetFloatv: ;(int pname, float *v)
142
 
138
 
143
align 4
139
align 4
144
f_kosgl_1 db 'kosglMakeCurrent',0
140
f_kosgl_1 db 'kosglMakeCurrent',0
145
err_0 db 'Error while initializing Z buffer',13,10,0
141
err_0 db 'Error while initializing Z buffer',13,10,0
146
f_zb_opn db ' ZB_open',0
142
f_zb_opn db ' ZB_open',0
Line 149... Line 145...
149
err_3 db 'bit mode not correct',13,10,0
145
err_3 db 'bit mode not correct',13,10,0
150
f_vp db ' glViewport',0
146
f_vp db ' glViewport',0
151
err_4 db 'error while resizing display',13,10,0
147
err_4 db 'error while resizing display',13,10,0
152
err_5 db 'size too small',13,10,0
148
err_5 db 'size too small',13,10,0
153
f_clipcode db ' gl_clipcode',0
149
f_clipcode db ' gl_clipcode',0
154
f_ttv db ' gl_transform_to_viewport',0
-
 
155
f_vt db ' gl_vertex_transform',0
-
 
156
f_ev db ' gl_eval_viewport',0
-
 
157
f_zbz db ' ZB_line_z',0
150
f_zbz db ' ZB_line_z',0
158
f_zb db ' ZB_line',0
151
f_zb db ' ZB_line',0
159
f_m4m db 'gl_M4_Mul',0
-
 
160
f_m4ml db 'gl_M4_MulLeft',0
-
 
161
f_find_l db 'find_list',0
152
f_find_l db 'find_list',0
162
f_alloc_l db 'alloc_list',0
153
f_alloc_l db 'alloc_list',0
163
f_is_l db 'glIsList',0
154
f_is_l db 'glIsList',0
164
f_gen_l db 'glGenLists',0
155
f_gen_l db 'glGenLists',0
165
f_end_l db 'glEndList',0
156
f_end_l db 'glEndList',0
166
;f_fill_trf db 'ZB_fillTriangleFlat',0
-
 
167
;f_fill_trrgb db 'ZB_fillTriangleSmooth',0
-
 
168
f_fill_tr db 'ZB_fillTriangle...',0
157
f_fill_tr db 'ZB_fillTriangle...',0
169
f_fill_tr_nl db ' lines',0
158
f_fill_tr_nl db ' lines',0
170
f_fill_tr_nll db ' len',0
159
f_fill_tr_nll db ' len',0
Line 171... Line 160...
171
 
160