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

#include <render.h>

Classes

struct  Impl

Public Member Functions

 Renderer (const Vfs &vfs, Con &con, const Heightmap &hm, const TerrainInfo &info, const std::vector< DrawItem > &scene, bool objects)
 ~Renderer ()
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 hud (const std::vector< HudQuad > &quads, int w, int h, const std::string &font_texture)
void save_ppm (const std::string &path, int w, int h) const
const float * clear_colour () const

Constructor & Destructor Documentation

◆ Renderer()

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

◆ ~Renderer()

obf::Renderer::~Renderer ( )
default

Member Function Documentation

◆ clear_colour()

const float * obf::Renderer::clear_colour ( ) const

◆ draw()

void obf::Renderer::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 = {} )

◆ hud()

void obf::Renderer::hud ( const std::vector< HudQuad > & quads,
int w,
int h,
const std::string & font_texture )

◆ save_ppm()

void obf::Renderer::save_ppm ( const std::string & path,
int w,
int h ) const

The documentation for this class was generated from the following files: