Subversion Repositories Kolibri OS

Rev

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

Rev 6243 Rev 8069
Line 61... Line 61...
61
 
61
 
62
struct ZBuffer
62
struct ZBuffer
63
	xsize dd ? ;int
63
	xsize dd ? ;int
64
	ysize dd ? ;int
64
	ysize dd ? ;int
-
 
65
	linesize dd ? ;int ;line size, in bytes
65
	linesize dd ? ;int ;line size, in bytes
66
		dd ? ;fix old error offset
Line 66... Line 67...
66
	mode dd ? ;int
67
	mode dd ? ;int
67
    
68
    
68
	zbuf dd ? ;*unsigned short
69
	zbuf dd ? ;*unsigned short
Line 76... Line 77...
76
	s_log2 dd ? ;unsigned int
77
	s_log2 dd ? ;unsigned int
77
	s_bound dd ? ;unsigned int
78
	s_bound dd ? ;unsigned int
78
	t_bound dd ? ;unsigned int
79
	t_bound dd ? ;unsigned int
79
ends
80
ends
Line 80... Line -...
80
 
-
 
81
offs_zbuf_xsize equ 0
-
 
82
offs_zbuf_ysize equ 4
-
 
83
offs_zbuf_linesize equ 8
-
 
84
offs_zbuf_mode equ 16
-
 
85
offs_zbuf_zbuf equ 20
-
 
86
offs_zbuf_pbuf equ 24
-
 
87
offs_zbuf_frame_buffer_allocated equ 28
-
 
88
offs_zbuf_nb_colors equ 32
-
 
89
offs_zbuf_dctable equ 36
-
 
90
offs_zbuf_ctable equ 40
-
 
91
offs_zbuf_current_texture equ 44
-
 
92
offs_zbuf_s_log2 equ 48
-
 
93
offs_zbuf_s_bound equ 52
-
 
94
offs_zbuf_t_bound equ 56
-
 
95
 
81
 
96
struct ZBufferPoint
82
struct ZBufferPoint
97
	x dd ? ;int ;integer coordinates in the zbuffer
83
	x dd ? ;int ;integer coordinates in the zbuffer
98
	y dd ? ;int
84
	y dd ? ;int
99
	z dd ? ;int
85
	z dd ? ;int
Line 105... Line 91...
105
 
91
 
106
	fsz dd ? ;float ;temporary coordinates for mapping
92
	fsz dd ? ;float ;temporary coordinates for mapping
107
	tz dd ? ;float
93
	tz dd ? ;float
Line 108... Line -...
108
ends
-
 
109
 
-
 
110
offs_zbup_x equ  0
-
 
111
offs_zbup_y equ  4
-
 
112
offs_zbup_z equ  8
-
 
113
offs_zbup_s equ 12
-
 
114
offs_zbup_t equ 16
-
 
115
offs_zbup_r equ 20
-
 
116
offs_zbup_g equ 24
-
 
117
offs_zbup_b equ 28
-
 
118
offs_zbup_sz equ 32
-
 
119
offs_zbup_tz equ 36
94
ends
Line 120... Line 95...
120
 
95
 
121
; ztriangle.c
96
; ztriangle.c
122
 
97