UFO: Alien Invasion
sphere_t Struct Reference

#include <r_sphere.h>

Collaboration diagram for sphere_t:
Collaboration graph

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

◆ blendScale

float sphere_t::blendScale

Definition at line 41 of file r_sphere.h.

Referenced by R_Draw3DGlobe(), and R_SphereShadeGLSL().

◆ blendTexture

image_t* sphere_t::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().

◆ glowScale

float sphere_t::glowScale

Definition at line 42 of file r_sphere.h.

Referenced by R_Draw3DGlobe(), and R_SphereShadeGLSL().

◆ glslProgram

r_program_t* sphere_t::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().

◆ list

GLint sphere_t::list

the opengl list id

Definition at line 28 of file r_sphere.h.

◆ nightLightPos

vec4_t sphere_t::nightLightPos

Definition at line 43 of file r_sphere.h.

Referenced by R_Draw3DGlobe(), and R_SphereShadeGLSL().

◆ normalMap

image_t* sphere_t::normalMap

bump map

Definition at line 36 of file r_sphere.h.

Referenced by R_Draw3DGlobe(), and R_SphereShadeGLSL().

◆ normals

float* sphere_t::normals

vertex normal array

Definition at line 31 of file r_sphere.h.

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

◆ num_tris

int sphere_t::num_tris

number of tris

Definition at line 37 of file r_sphere.h.

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

◆ overlay

image_t* sphere_t::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().

◆ overlayAlphaMask

image_t* sphere_t::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().

◆ season

int sphere_t::season

Definition at line 44 of file r_sphere.h.

Referenced by R_Draw3DGlobe().

◆ texes

float* sphere_t::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().

◆ texture

image_t* sphere_t::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().

◆ verts

float* sphere_t::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: