UFO: Alien Invasion
Loading...
Searching...
No Matches
r_sphere.h
Go to the documentation of this file.
1
5
/*
6
Copyright (C) 1997-2001 Id Software, Inc.
7
8
This program is free software; you can redistribute it and/or
9
modify it under the terms of the GNU General Public License
10
as published by the Free Software Foundation; either version 2
11
of the License, or (at your option) any later version.
12
13
This program is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
17
See the GNU General Public License for more details.
18
19
You should have received a copy of the GNU General Public License
20
along with this program; if not, write to the Free Software
21
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
23
*/
24
25
#pragma once
26
27
typedef
struct
sphere_s {
28
GLint
list
;
29
float
*
texes
;
30
float
*
verts
;
31
float
*
normals
;
32
image_t
*
texture
;
33
image_t
*
blendTexture
;
34
image_t
*
overlay
;
35
image_t
*
overlayAlphaMask
;
36
image_t
*
normalMap
;
37
int
num_tris
;
38
40
r_program_t
*
glslProgram
;
41
float
blendScale
;
42
float
glowScale
;
43
vec4_t
nightLightPos
;
44
int
season
;
45
}
sphere_t
;
46
47
extern
sphere_t
r_globeEarth
;
48
extern
sphere_t
r_globeMoon
;
49
extern
sphere_t
r_globeEarthAtmosphere
;
50
51
void
R_SphereGenerate
(
sphere_t
* sphere,
const
int
tris,
const
float
radius);
52
void
R_SphereRender
(
const
sphere_t
* sphere,
const
vec3_t
pos,
const
vec3_t
rotate,
const
float
scale
,
const
vec4_t
lightPos);
53
void
R_SphereInit
(
void
);
GLint
QGL_EXTERN GLint
Definition
r_gl.h:135
r_globeEarth
sphere_t r_globeEarth
Definition
r_sphere.cpp:33
r_globeEarthAtmosphere
sphere_t r_globeEarthAtmosphere
Definition
r_sphere.cpp:35
r_globeMoon
sphere_t r_globeMoon
Definition
r_sphere.cpp:34
R_SphereGenerate
void R_SphereGenerate(sphere_t *sphere, const int tris, const float radius)
Initialize the globe chain arrays.
Definition
r_sphere.cpp:51
R_SphereRender
void R_SphereRender(const sphere_t *sphere, const vec3_t pos, const vec3_t rotate, const float scale, const vec4_t lightPos)
Draw the sphere.
Definition
r_sphere.cpp:247
R_SphereInit
void R_SphereInit(void)
Creates the spheres we need for rendering the 3d globe.
Definition
r_sphere.cpp:119
image_t
Definition
r_image.h:61
r_program_t
Definition
r_program.h:54
sphere_t
Definition
r_sphere.h:27
sphere_t::overlay
image_t * overlay
Definition
r_sphere.h:34
sphere_t::nightLightPos
vec4_t nightLightPos
Definition
r_sphere.h:43
sphere_t::texes
float * texes
Definition
r_sphere.h:29
sphere_t::normalMap
image_t * normalMap
Definition
r_sphere.h:36
sphere_t::num_tris
int num_tris
Definition
r_sphere.h:37
sphere_t::list
GLint list
Definition
r_sphere.h:28
sphere_t::verts
float * verts
Definition
r_sphere.h:30
sphere_t::glowScale
float glowScale
Definition
r_sphere.h:42
sphere_t::texture
image_t * texture
Definition
r_sphere.h:32
sphere_t::overlayAlphaMask
image_t * overlayAlphaMask
Definition
r_sphere.h:35
sphere_t::blendScale
float blendScale
Definition
r_sphere.h:41
sphere_t::glslProgram
r_program_t * glslProgram
Definition
r_sphere.h:40
sphere_t::blendTexture
image_t * blendTexture
Definition
r_sphere.h:33
sphere_t::normals
float * normals
Definition
r_sphere.h:31
sphere_t::season
int season
Definition
r_sphere.h:44
vec3_t
vec_t vec3_t[3]
Definition
ufotypes.h:39
vec4_t
vec_t vec4_t[4]
Definition
ufotypes.h:40
scale
static const vec3_t scale
Definition
ui_node_baseinventory.cpp:238
src
client
renderer
r_sphere.h
Generated on __DATE__ __TIME__ for UFO: Alien Invasion by
1.16.1