Subversion Repositories Kolibri OS

Rev

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

Rev 5171 Rev 5269
Line 37... Line 37...
37
	stdcall gl_malloc, POLYGON_MAX_VERTEX*sizeof.GLVertex
37
	stdcall gl_malloc, POLYGON_MAX_VERTEX*sizeof.GLVertex
38
	mov dword[edx+offs_cont_vertex],eax
38
	mov dword[edx+offs_cont_vertex],eax
39
 
39
 
Line 40... Line 40...
40
	; viewport
40
	; viewport
-
 
41
	xor eax,eax
41
	mov dword[edx+offs_cont_viewport+offs_vpor_xmin],0
42
	mov dword[edx+offs_cont_viewport+offs_vpor_xmin],eax
42
	mov dword[edx+offs_cont_viewport+offs_vpor_ymin],0
43
	mov dword[edx+offs_cont_viewport+offs_vpor_ymin],eax
43
	mov eax,[ecx+offs_zbuf_xsize]
44
	mov eax,[ecx+offs_zbuf_xsize]
44
	mov dword[edx+offs_cont_viewport+offs_vpor_xsize], eax
45
	mov dword[edx+offs_cont_viewport+offs_vpor_xsize],eax
45
	mov eax,[ecx+offs_zbuf_ysize]
46
	mov eax,[ecx+offs_zbuf_ysize]
46
	mov dword[edx+offs_cont_viewport+offs_vpor_ysize], eax
47
	mov dword[edx+offs_cont_viewport+offs_vpor_ysize],eax
47
	mov dword[edx+offs_cont_viewport+offs_vpor_updated],1
48
	mov dword[edx+offs_cont_viewport+offs_vpor_updated],1
Line 69... Line 70...
69
		gl_V3_New eax+offs_ligh_spot_direction, 0.0,0.0,-1.0
70
		gl_V3_New eax+offs_ligh_spot_direction, 0.0,0.0,-1.0
70
		gl_V3_New eax+offs_ligh_norm_spot_direction, 0.0,0.0,-1.0
71
		gl_V3_New eax+offs_ligh_norm_spot_direction, 0.0,0.0,-1.0
71
		mov dword[eax+offs_ligh_spot_exponent],0.0
72
		mov dword[eax+offs_ligh_spot_exponent],0.0
72
		mov dword[eax+offs_ligh_spot_cutoff],180.0
73
		mov dword[eax+offs_ligh_spot_cutoff],180.0
73
		mov dword[eax+offs_ligh_attenuation],1.0
74
		gl_V3_New eax+offs_ligh_attenuation, 1.0,0.0,0.0
74
		mov dword[eax+offs_ligh_attenuation+4],0.0
-
 
75
		mov dword[eax+offs_ligh_attenuation+8],0.0
-
 
76
		mov dword[eax+offs_ligh_enabled],0
75
		mov dword[eax+offs_ligh_enabled],0
77
		add eax,sizeof.GLLight
76
		add eax,sizeof.GLLight
78
		dec ecx
77
		dec ecx
79
		cmp ecx,0
78
		cmp ecx,0
80
	jg .cycle_0
79
	jg .cycle_0
81
 
80
 
Line 105... Line 104...
105
	; textures
104
	; textures
106
	stdcall glInitTextures,edx
105
	stdcall glInitTextures,edx
Line 107... Line 106...
107
 
106
 
108
	; default state
-
 
109
	mov dword[edx+offs_cont_current_color],1.0
-
 
110
	mov dword[edx+offs_cont_current_color+4],1.0
-
 
111
	mov dword[edx+offs_cont_current_color+8],1.0
107
	; default state
112
	mov dword[edx+offs_cont_current_color+12],1.0
-
 
113
	mov dword[edx+offs_cont_longcurrent_color],65535
-
 
114
	mov dword[edx+offs_cont_longcurrent_color+4],65535
108
	gl_V4_New edx+offs_cont_current_color, 1.0,1.0,1.0,1.0
115
	mov dword[edx+offs_cont_longcurrent_color+8],65535
109
	gl_V3_New edx+offs_cont_longcurrent_color, 65535,65535,65535
116
 
-
 
117
	mov dword[edx+offs_cont_current_normal],1.0
-
 
118
	mov dword[edx+offs_cont_current_normal+4],0.0
-
 
119
	mov dword[edx+offs_cont_current_normal+8],0.0
110
 
Line 120... Line 111...
120
	mov dword[edx+offs_cont_current_normal+12],0.0
111
	gl_V4_New edx+offs_cont_current_normal, 1.0,0.0,0.0,0.0
Line 121... Line -...
121
 
-
 
122
	mov dword[edx+offs_cont_current_edge_flag],1
-
 
123
  
-
 
124
	mov dword[edx+offs_cont_current_tex_coord],0.0
112
 
Line 125... Line 113...
125
	mov dword[edx+offs_cont_current_tex_coord+4],0.0
113
	mov dword[edx+offs_cont_current_edge_flag],1
126
	mov dword[edx+offs_cont_current_tex_coord+8],0.0
114
  
Line 127... Line 115...
127
	mov dword[edx+offs_cont_current_tex_coord+12],1.0
115
	gl_V4_New edx+offs_cont_current_tex_coord, 0.0,0.0,0.0,1.0
128
 
116
 
129
	mov dword[edx+offs_cont_polygon_mode_front],GL_FILL
117
	mov dword[edx+offs_cont_polygon_mode_front],GL_FILL
130
	mov dword[edx+offs_cont_polygon_mode_back],GL_FILL
118
	mov dword[edx+offs_cont_polygon_mode_back],GL_FILL
Line 131... Line 119...
131
 
119
 
132
	mov dword[edx+offs_cont_current_front_face],0 ;0 = GL_CCW  1 = GL_CW
-
 
133
	mov dword[edx+offs_cont_current_cull_face],GL_BACK
-
 
134
	mov dword[edx+offs_cont_current_shade_model],GL_SMOOTH
-
 
135
	mov dword[edx+offs_cont_cull_face_enabled],0
120
	mov dword[edx+offs_cont_current_front_face],0 ;0 = GL_CCW  1 = GL_CW
136
  
121
	mov dword[edx+offs_cont_current_cull_face],GL_BACK
Line 137... Line 122...
137
	; clear
122
	mov dword[edx+offs_cont_current_shade_model],GL_SMOOTH
138
	mov dword[edx+offs_cont_clear_color],0.0
123
	mov dword[edx+offs_cont_cull_face_enabled],0
139
	mov dword[edx+offs_cont_clear_color+4],0.0
124
  
140
	mov dword[edx+offs_cont_clear_color+8],0.0
125
	; clear
Line 141... Line 126...
141
	mov dword[edx+offs_cont_clear_color+12],0.0
126
	gl_V4_New edx+offs_cont_clear_color, 0.0,0.0,0.0,0.0
142
	mov dword[edx+offs_cont_clear_depth],0
127
	mov dword[edx+offs_cont_clear_depth],0
Line 143... Line 128...
143
 
128
 
144
	; selection
-
 
145
	mov dword[edx+offs_cont_render_mode],GL_RENDER
129
	; selection
Line 146... Line 130...
146
	mov dword[edx+offs_cont_select_buffer],0 ;NULL
130
	mov dword[edx+offs_cont_render_mode],GL_RENDER
147
	mov dword[edx+offs_cont_name_stack_size],0
131
	mov dword[edx+offs_cont_select_buffer],0 ;NULL
148
 
132
	mov dword[edx+offs_cont_name_stack_size],0
149
	; matrix
133