Rev 5418 | Rev 6134 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5418 | Rev 6017 | ||
---|---|---|---|
Line 6... | Line 6... | ||
6 | CLIP_YMIN equ (1<<2) |
6 | CLIP_YMIN equ (1<<2) |
7 | CLIP_YMAX equ (1<<3) |
7 | CLIP_YMAX equ (1<<3) |
8 | CLIP_ZMIN equ (1<<4) |
8 | CLIP_ZMIN equ (1<<4) |
9 | CLIP_ZMAX equ (1<<5) |
9 | CLIP_ZMAX equ (1<<5) |
Line 10... | Line -... | ||
10 | - | ||
11 | offs_X equ 0 |
- | |
12 | offs_Y equ 4 |
- | |
13 | offs_Z equ 8 |
- | |
14 | offs_W equ 12 |
- | |
15 | - | ||
16 | if DEBUG |
- | |
17 | f_ttv db ' gl_transform_to_viewport',0 |
- | |
18 | end if |
- | |
19 | 10 | ||
20 | align 4 |
11 | align 4 |
21 | proc gl_transform_to_viewport uses eax ebx ecx, context:dword,v:dword |
12 | proc gl_transform_to_viewport uses eax ebx ecx, context:dword,v:dword |
22 | locals |
13 | locals |
23 | point dd ? |
14 | point dd ? |
Line 85... | Line 76... | ||
85 | fild dword[point] |
76 | fild dword[point] |
86 | fmul dword[ebx+offs_vert_tex_coord+4] ;st0 *= v.tex_coord.Y |
77 | fmul dword[ebx+offs_vert_tex_coord+4] ;st0 *= v.tex_coord.Y |
87 | fistp dword[ebx+offs_vert_zp+offs_zbup_t] |
78 | fistp dword[ebx+offs_vert_zp+offs_zbup_t] |
88 | add dword[ebx+offs_vert_zp+offs_zbup_s],ZB_POINT_T_MIN |
79 | add dword[ebx+offs_vert_zp+offs_zbup_s],ZB_POINT_T_MIN |
89 | @@: |
80 | @@: |
90 | if DEBUG ;gl_transform_to_viewport |
- | |
91 | pushad |
- | |
92 | mov ecx,80 |
- | |
93 | mov eax,[ebx+offs_vert_zp] |
- | |
94 | lea edi,[buf_param] |
- | |
95 | stdcall convert_int_to_str,ecx |
- | |
96 | stdcall str_n_cat,edi,txt_zp_sp,2 |
- | |
97 | stdcall str_len,edi |
- | |
98 | add edi,eax |
- | |
99 | sub ecx,eax |
- | |
100 | - | ||
101 | mov eax,[ebx+offs_vert_zp+offs_zbup_y] |
- | |
102 | stdcall convert_int_to_str,ecx |
- | |
103 | stdcall str_n_cat,edi,txt_zp_sp,2 |
- | |
104 | stdcall str_len,edi |
- | |
105 | add edi,eax |
- | |
106 | sub ecx,eax |
- | |
107 | - | ||
108 | mov eax,[ebx+offs_vert_zp+offs_zbup_z] |
- | |
109 | stdcall convert_int_to_str,ecx |
- | |
110 | - | ||
111 | stdcall str_n_cat,edi,txt_nl,2 |
- | |
112 | stdcall dbg_print,f_ttv,buf_param |
- | |
113 | popad |
- | |
114 | end if |
- | |
115 | ret |
81 | ret |
116 | endp |
82 | endp |
Line 117... | Line 83... | ||
117 | 83 | ||
118 | align 4 |
84 | align 4 |