Subversion Repositories Kolibri OS

Rev

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

Rev 5153 Rev 6108
Line 12... Line 12...
12
ends
12
ends
Line 13... Line 13...
13
 
13
 
14
;KOSGLContext kosglCreateContext(KOSGLContext shareList, int flags)
14
;KOSGLContext kosglCreateContext(KOSGLContext shareList, int flags)
15
;{
15
;{
16
;  TinyGLContext *ctx;
16
;  TinyGLContext *ctx;
17
;
17
 
18
;  if (shareList != NULL) {
18
;  if (shareList != NULL) {
19
;    gl_fatal_error("No sharing available in TinyGL");    
19
;    gl_fatal_error("No sharing available in TinyGL");    
20
;  }
20
;  }
21
;
21
 
22
;    ctx=gl_malloc(sizeof(TinyGLContext));
22
;    ctx=gl_malloc(sizeof(TinyGLContext));
23
;  if (!ctx)
23
;  if (!ctx)
24
;      return NULL;
24
;      return NULL;
25
;  ctx->gl_context=NULL;
25
;  ctx->gl_context=NULL;
Line 97... Line 97...
97
 
97
 
98
		; currently, we only support 16 bit rendering
98
		; currently, we only support 16 bit rendering
99
		xor eax,eax
99
		xor eax,eax
Line 100... Line 100...
100
		stdcall ZB_open, dword[win_x], dword[win_y], dword ZB_MODE_RGB24, eax,eax,eax,eax ;NULL,NULL,NULL
100
		stdcall ZB_open, dword[win_x], dword[win_y], dword ZB_MODE_RGB24, eax,eax,eax,eax ;NULL,NULL,NULL
101
 
101
 
102
		cmp eax,0
102
		or eax,eax
103
		jne @f
103
		jnz @f
104
			stdcall dbg_print,f_kosgl_1,err_0
104
			stdcall dbg_print,sz_kosglMakeCurrent,err_0
105
			xor eax,eax
105
			xor eax,eax
Line 106... Line 106...
106
			jmp .err_f
106
			jmp .err_f