FS2_Open
Open source remastering of the Freespace 2 engine
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
3dinternal.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) Volition, Inc. 1999. All rights reserved.
3
*
4
* All source code herein is the property of Volition, Inc. You may not sell
5
* or otherwise commercially exploit the source or things you created based on the
6
* source.
7
*
8
*/
9
10
11
12
#ifndef _3DINTERNAL_H
13
#define _3DINTERNAL_H
14
15
#include "
render/3d.h
"
16
17
extern
int
Canvas_width
,
Canvas_height
;
//the actual width & height
18
extern
float
Canv_w2
,
Canv_h2
;
//fixed-point width,height/2
19
20
extern
vec3d
Window_scale
;
21
extern
int
free_point_num
;
22
23
extern
float
View_zoom
;
24
extern
vec3d
View_position
,
Matrix_scale
;
25
extern
matrix
View_matrix
,
Unscaled_matrix
;
26
27
extern
void
free_temp_point
(
vertex
*
p
);
28
extern
vertex
**
clip_polygon
(
vertex
**
src
,
vertex
**dest,
int
*nv,
ccodes
*cc,
uint
flags
);
29
extern
void
init_free_points
(
void
);
30
extern
void
clip_line
(
vertex
**
p0
,
vertex
**
p1
,
ubyte
codes_or,
uint
flags
);
31
32
extern
int
G3_count
;
33
34
extern
int
G3_user_clip
;
35
extern
vec3d
G3_user_clip_normal
;
36
extern
vec3d
G3_user_clip_point
;
37
38
// Returns TRUE if point is behind user plane
39
extern
int
g3_point_behind_user_plane
(
const
vec3d
*pnt );
40
41
#endif
Canv_w2
float Canv_w2
Definition:
3dsetup.cpp:39
G3_user_clip
int G3_user_clip
Definition:
3dsetup.cpp:360
vertex
Definition:
pstypes.h:171
free_temp_point
void free_temp_point(vertex *p)
Definition:
3dclipper.cpp:42
clip_line
void clip_line(vertex **p0, vertex **p1, ubyte codes_or, uint flags)
Clips a line to the viewing pyramid.
Definition:
3dclipper.cpp:197
Window_scale
vec3d Window_scale
Definition:
3dsetup.cpp:33
vec3d
Definition:
pstypes.h:88
p0
hull_check p0
Definition:
lua.cpp:5051
Unscaled_matrix
matrix Unscaled_matrix
Definition:
3dsetup.cpp:21
View_position
vec3d View_position
Definition:
3dsetup.cpp:20
g3_point_behind_user_plane
int g3_point_behind_user_plane(const vec3d *pnt)
Definition:
3dsetup.cpp:419
G3_user_clip_point
vec3d G3_user_clip_point
Definition:
3dsetup.cpp:362
G3_user_clip_normal
vec3d G3_user_clip_normal
Definition:
3dsetup.cpp:361
matrix
Definition:
pstypes.h:114
ccodes
Definition:
pstypes.h:70
uint
unsigned int uint
Definition:
pstypes.h:64
3d.h
p1
hull_check p1
Definition:
lua.cpp:5052
Canvas_width
int Canvas_width
Definition:
3dsetup.cpp:36
free_point_num
int free_point_num
Definition:
3dclipper.cpp:16
Matrix_scale
vec3d Matrix_scale
Definition:
3dsetup.cpp:34
ubyte
unsigned char ubyte
Definition:
pstypes.h:62
flags
GLbitfield flags
Definition:
Glext.h:6722
init_free_points
void init_free_points(void)
Definition:
3dclipper.cpp:21
p
GLfloat GLfloat p
Definition:
Glext.h:8373
View_matrix
matrix View_matrix
Definition:
3dsetup.cpp:19
src
GLenum src
Definition:
Glext.h:5917
clip_polygon
vertex ** clip_polygon(vertex **src, vertex **dest, int *nv, ccodes *cc, uint flags)
Clips a polygon to the viewing pyramid.
Definition:
3dclipper.cpp:274
View_zoom
float View_zoom
Definition:
3dsetup.cpp:30
G3_count
int G3_count
Definition:
3dsetup.cpp:59
Canv_h2
float Canv_h2
Definition:
3dsetup.cpp:40
Canvas_height
int Canvas_height
Definition:
3dsetup.cpp:37
code
render
3dinternal.h
Generated on Sun May 1 2016 16:23:31 for FS2_Open by
1.8.10