Subversion Repositories Kolibri OS

Rev

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

Rev 7929 Rev 8063
Line 62... Line 62...
62
	mov ecx,MAX_LIGHTS
62
	mov ecx,MAX_LIGHTS
63
	mov eax,edx
63
	mov eax,edx
64
	add eax,GLContext.lights
64
	add eax,GLContext.lights
65
	.cycle_0:
65
	.cycle_0:
66
		gl_V4_New eax+offs_ligh_ambient, 0.0,0.0,0.0,1.0
66
		gl_V4_New eax+GLLight.ambient, 0.0,0.0,0.0,1.0
67
		gl_V4_New eax+offs_ligh_diffuse, 1.0,1.0,1.0,1.0
67
		gl_V4_New eax+GLLight.diffuse, 1.0,1.0,1.0,1.0
68
		gl_V4_New eax+offs_ligh_specular, 1.0,1.0,1.0,1.0
68
		gl_V4_New eax+GLLight.specular, 1.0,1.0,1.0,1.0
69
		gl_V4_New eax+offs_ligh_position, 0.0,0.0,1.0,0.0
69
		gl_V4_New eax+GLLight.position, 0.0,0.0,1.0,0.0
70
		gl_V3_New eax+offs_ligh_norm_position, 0.0,0.0,1.0
70
		gl_V3_New eax+GLLight.norm_position, 0.0,0.0,1.0
71
		gl_V3_New eax+offs_ligh_spot_direction, 0.0,0.0,-1.0
71
		gl_V3_New eax+GLLight.spot_direction, 0.0,0.0,-1.0
72
		gl_V3_New eax+offs_ligh_norm_spot_direction, 0.0,0.0,-1.0
72
		gl_V3_New eax+GLLight.norm_spot_direction, 0.0,0.0,-1.0
73
		mov dword[eax+offs_ligh_spot_exponent],0.0
73
		mov dword[eax+GLLight.spot_exponent],0.0
74
		mov dword[eax+offs_ligh_spot_cutoff],180.0
74
		mov dword[eax+GLLight.spot_cutoff],180.0
75
		gl_V3_New eax+offs_ligh_attenuation, 1.0,0.0,0.0
75
		gl_V3_New eax+GLLight.attenuation, 1.0,0.0,0.0
76
		mov dword[eax+offs_ligh_enabled],0
76
		mov dword[eax+GLLight.enabled],0
77
		add eax,sizeof.GLLight
77
		add eax,sizeof.GLLight
78
		dec ecx
78
		dec ecx
79
		cmp ecx,0
79
		cmp ecx,0
80
	jg .cycle_0
80
	jg .cycle_0
81
 
81
 
Line 86... Line 86...
86
	mov dword[edx+GLContext.light_model_two_side],0
86
	mov dword[edx+GLContext.light_model_two_side],0
87
 
87
 
Line 88... Line 88...
88
	; default materials
88
	; default materials
89
	mov ecx,2 ;for(i=0;i<2;i++)
89
	mov ecx,2 ;for(i=0;i<2;i++)
90
	mov eax,edx
-
 
91
	add eax,GLContext.materials
90
	lea eax,[edx+GLContext.materials]
92
	@@:
91
	@@:
93
		gl_V4_New eax+offs_mate_emission, 0.0,0.0,0.0,1.0
92
		gl_V4_New eax+GLMaterial.emission, 0.0,0.0,0.0,1.0
94
		gl_V4_New eax+offs_mate_ambient, 0.2,0.2,0.2,1.0
93
		gl_V4_New eax+GLMaterial.ambient, 0.2,0.2,0.2,1.0
95
		gl_V4_New eax+offs_mate_diffuse, 0.8,0.8,0.8,1.0
94
		gl_V4_New eax+GLMaterial.diffuse, 0.8,0.8,0.8,1.0
96
		gl_V4_New eax+offs_mate_specular, 0.0,0.0,0.0,1.0
95
		gl_V4_New eax+GLMaterial.specular, 0.0,0.0,0.0,1.0
97
		mov dword[eax+offs_mate_shininess], 0.0
96
		mov dword[eax+GLMaterial.shininess], 0.0
98
		add eax,sizeof.GLMaterial
97
		add eax,sizeof.GLMaterial
99
	loop @b
98
	loop @b
Line 100... Line 99...
100
 
99
 
101
	mov dword[edx+GLContext.current_color_material_mode],GL_FRONT_AND_BACK
100
	mov dword[edx+GLContext.current_color_material_mode],GL_FRONT_AND_BACK