OpenBF1942-Plus
Refractor 1, rebuilt from scratch
Loading...
Searching...
No Matches
obf::Renderer::Impl Struct Reference

Public Member Functions

 Impl (const Vfs &vfs, Con &con, const Heightmap &hm, const TerrainInfo &info, const std::vector< DrawItem > &scene, bool objects)
std::shared_ptr< Animation > state_anim (const std::string &name, bool first_person=false, float *speed=nullptr)
void draw (const std::vector< DrawItem > &scene, const Camera &cam, int W, int H, float seconds, bool show_collision, const std::vector< float > &projectiles, const std::vector< SoldierView > &soldiers, const std::vector< Sprite > &sprites, const std::vector< MeshParticle > &fx_meshes)
void draw_sprites (const std::vector< Sprite > &sprites, const Camera &cam, const Mat4 &vp)
void draw_meshes (const std::vector< MeshParticle > &ms)

Public Attributes

std::unique_ptr< Textures > textures
GLuint vao = 0
GLuint prog = 0
GLuint tracer_vao = 0
GLuint tracer_vbo = 0
GLuint hud_prog = 0
GLuint hud_vao = 0
GLuint hud_vbo = 0
GLuint hud_tex = 0
std::string hud_font
GLsizei terrain_count = 0
size_t water_first = 0
float ws = 0
float fogc [3] = {}
std::string sky_rot
std::unique_ptr< GpuMesh > sky
std::map< std::string, std::unique_ptr< GpuMesh > > meshes
std::vector< const GpuMesh * > item_mesh
std::vector< Animated > animated
std::vector< int > anim_of_item
std::map< std::string, State > states
std::map< std::string, std::shared_ptr< Animation > > anims
std::map< std::string, std::shared_ptr< Skeleton > > skeletons
std::map< size_t, Mat4 > held
GLint u_sprite = -1
GLint u_has_lm = -1
GLint u_vp = -1
GLint u_model = -1
GLint u_mode = -1
GLint u_right = -1
GLint u_cam = -1
const Vfs & vfs
GLuint fx_prog = 0
GLuint fx_vao = 0
GLuint fx_vbo = 0
std::unique_ptr< Effects > fx1p
float fx1p_shot = -1
float fx1p_clock = -1
GLuint minimap_tex = 0

Constructor & Destructor Documentation

◆ Impl()

obf::Renderer::Impl::Impl ( const Vfs & vfs,
Con & con,
const Heightmap & hm,
const TerrainInfo & info,
const std::vector< DrawItem > & scene,
bool objects )

Member Function Documentation

◆ draw()

void obf::Renderer::Impl::draw ( const std::vector< DrawItem > & scene,
const Camera & cam,
int W,
int H,
float seconds,
bool show_collision,
const std::vector< float > & projectiles,
const std::vector< SoldierView > & soldiers,
const std::vector< Sprite > & sprites,
const std::vector< MeshParticle > & fx_meshes )

◆ draw_meshes()

void obf::Renderer::Impl::draw_meshes ( const std::vector< MeshParticle > & ms)

◆ draw_sprites()

void obf::Renderer::Impl::draw_sprites ( const std::vector< Sprite > & sprites,
const Camera & cam,
const Mat4 & vp )

◆ state_anim()

std::shared_ptr< Animation > obf::Renderer::Impl::state_anim ( const std::string & name,
bool first_person = false,
float * speed = nullptr )
inline

Member Data Documentation

◆ anim_of_item

std::vector<int> obf::Renderer::Impl::anim_of_item

◆ animated

std::vector<Animated> obf::Renderer::Impl::animated

◆ anims

std::map<std::string, std::shared_ptr<Animation> > obf::Renderer::Impl::anims

◆ fogc

float obf::Renderer::Impl::fogc[3] = {}

◆ fx1p

std::unique_ptr<Effects> obf::Renderer::Impl::fx1p

◆ fx1p_clock

float obf::Renderer::Impl::fx1p_clock = -1

◆ fx1p_shot

float obf::Renderer::Impl::fx1p_shot = -1

◆ fx_prog

GLuint obf::Renderer::Impl::fx_prog = 0

◆ fx_vao

GLuint obf::Renderer::Impl::fx_vao = 0

◆ fx_vbo

GLuint obf::Renderer::Impl::fx_vbo = 0

◆ held

std::map<size_t, Mat4> obf::Renderer::Impl::held

◆ hud_font

std::string obf::Renderer::Impl::hud_font

◆ hud_prog

GLuint obf::Renderer::Impl::hud_prog = 0

◆ hud_tex

GLuint obf::Renderer::Impl::hud_tex = 0

◆ hud_vao

GLuint obf::Renderer::Impl::hud_vao = 0

◆ hud_vbo

GLuint obf::Renderer::Impl::hud_vbo = 0

◆ item_mesh

std::vector<const GpuMesh*> obf::Renderer::Impl::item_mesh

◆ meshes

std::map<std::string, std::unique_ptr<GpuMesh> > obf::Renderer::Impl::meshes

◆ minimap_tex

GLuint obf::Renderer::Impl::minimap_tex = 0

◆ prog

GLuint obf::Renderer::Impl::prog = 0

◆ skeletons

std::map<std::string, std::shared_ptr<Skeleton> > obf::Renderer::Impl::skeletons

◆ sky

std::unique_ptr<GpuMesh> obf::Renderer::Impl::sky

◆ sky_rot

std::string obf::Renderer::Impl::sky_rot

◆ states

std::map<std::string, State> obf::Renderer::Impl::states

◆ terrain_count

GLsizei obf::Renderer::Impl::terrain_count = 0

◆ textures

std::unique_ptr<Textures> obf::Renderer::Impl::textures

◆ tracer_vao

GLuint obf::Renderer::Impl::tracer_vao = 0

◆ tracer_vbo

GLuint obf::Renderer::Impl::tracer_vbo = 0

◆ u_cam

GLint obf::Renderer::Impl::u_cam = -1

◆ u_has_lm

GLint obf::Renderer::Impl::u_has_lm = -1

◆ u_mode

GLint obf::Renderer::Impl::u_mode = -1

◆ u_model

GLint obf::Renderer::Impl::u_model = -1

◆ u_right

GLint obf::Renderer::Impl::u_right = -1

◆ u_sprite

GLint obf::Renderer::Impl::u_sprite = -1

◆ u_vp

GLint obf::Renderer::Impl::u_vp = -1

◆ vao

GLuint obf::Renderer::Impl::vao = 0

◆ vfs

const Vfs& obf::Renderer::Impl::vfs

◆ water_first

size_t obf::Renderer::Impl::water_first = 0

◆ ws

float obf::Renderer::Impl::ws = 0

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