UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
sphere_s Struct Reference

#include <r_sphere.h>

Data Fields

GLint list
 
float * texes
 
float * verts
 
float * normals
 
image_ttexture
 
image_tblendTexture
 
image_toverlay
 
image_toverlayAlphaMask
 
image_tnormalMap
 
int num_tris
 
r_program_tglslProgram
 
float blendScale
 
float glowScale
 
vec4_t nightLightPos
 
int season
 

Detailed Description

Definition at line 27 of file r_sphere.h.

Field Documentation

float sphere_s::blendScale

Definition at line 41 of file r_sphere.h.

Referenced by R_Draw3DGlobe(), and R_SphereShadeGLSL().

image_t* sphere_s::blendTexture

the texture for the next season (for blending)

Definition at line 33 of file r_sphere.h.

Referenced by R_Draw3DGlobe(), and R_SphereShadeGLSL().

float sphere_s::glowScale

Definition at line 42 of file r_sphere.h.

Referenced by R_Draw3DGlobe(), and R_SphereShadeGLSL().

r_program_t* sphere_s::glslProgram
Note
extra stuff for new GLSL renderer

Definition at line 40 of file r_sphere.h.

Referenced by R_Draw3DGlobe(), R_SphereCheckGLSL(), R_SphereGenerate(), and R_SphereShadeGLSL().

GLint sphere_s::list

the opengl list id

Definition at line 28 of file r_sphere.h.

vec4_t sphere_s::nightLightPos

Definition at line 43 of file r_sphere.h.

Referenced by R_Draw3DGlobe(), and R_SphereShadeGLSL().

image_t* sphere_s::normalMap

bump map

Definition at line 36 of file r_sphere.h.

Referenced by R_Draw3DGlobe(), and R_SphereShadeGLSL().

float* sphere_s::normals

vertex normal array

Definition at line 31 of file r_sphere.h.

Referenced by R_SphereGenerate(), R_SphereShade(), and R_SphereShadeGLSL().

int sphere_s::num_tris

number of tris

Definition at line 37 of file r_sphere.h.

Referenced by R_SphereGenerate(), R_SphereRender(), and R_SphereRenderTris().

image_t* sphere_s::overlay

the overlay for the world (e.g. nation borders)

Definition at line 34 of file r_sphere.h.

Referenced by R_Draw3DGlobe(), R_SphereRender(), and R_SphereShade().

image_t* sphere_s::overlayAlphaMask

in case of multitexture this is the alpha mask

Definition at line 35 of file r_sphere.h.

Referenced by R_Draw3DGlobe(), and R_SphereShade().

int sphere_s::season

Definition at line 44 of file r_sphere.h.

Referenced by R_Draw3DGlobe().

float* sphere_s::texes

globe tex coords, points in 2D on the texture to be mapped onto the sphere

Definition at line 29 of file r_sphere.h.

Referenced by R_SphereGenerate(), R_SphereShade(), and R_SphereShadeGLSL().

image_t* sphere_s::texture

the texture for this globe -

Note
scaled texture matrix

Definition at line 32 of file r_sphere.h.

Referenced by R_Draw3DGlobe(), R_SphereShade(), and R_SphereShadeGLSL().

float* sphere_s::verts

globe vertices, points in 3D on the surface of the sphere

Definition at line 30 of file r_sphere.h.

Referenced by R_SphereGenerate(), R_SphereShade(), and R_SphereShadeGLSL().


The documentation for this struct was generated from the following file: