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