OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
DrawCommands Class Reference

#include <drawcommands.h>

Classes

struct  DrawCmd
 

Public Types

enum  Type : uint8_t {
  Landscape , Static , Movable , Animated ,
  Pfx , Morph
}
 

Public Member Functions

 DrawCommands (VisualObjects &owner, DrawBuckets &buckets, DrawClusters &clusters, const SceneGlobals &scene)
 
 ~DrawCommands ()
 
const DrawCmdoperator[] (size_t i) const
 
size_t maxMeshlets () const
 
void commit (Tempest::Encoder< Tempest::CommandBuffer > &cmd)
 
uint16_t commandId (const Material &m, Type type, uint32_t bucketId)
 
void addClusters (uint16_t cmdId, uint32_t meshletCount)
 
void resetRendering ()
 
void visibilityPass (Tempest::Encoder< Tempest::CommandBuffer > &cmd, int pass)
 
void visibilityVsm (Tempest::Encoder< Tempest::CommandBuffer > &cmd)
 
void drawHiZ (Tempest::Encoder< Tempest::CommandBuffer > &cmd)
 
void drawCommon (Tempest::Encoder< Tempest::CommandBuffer > &cmd, SceneGlobals::VisCamera viewId, Material::AlphaFunc func)
 
void drawVsm (Tempest::Encoder< Tempest::CommandBuffer > &cmd)
 

Detailed Description

Definition at line 13 of file drawcommands.h.

Member Enumeration Documentation

◆ Type

enum DrawCommands::Type : uint8_t
Enumerator
Landscape 
Static 
Movable 
Animated 
Pfx 
Morph 

Definition at line 15 of file drawcommands.h.

Constructor & Destructor Documentation

◆ DrawCommands()

DrawCommands::DrawCommands ( VisualObjects owner,
DrawBuckets buckets,
DrawClusters clusters,
const SceneGlobals scene 
)

Definition at line 50 of file drawcommands.cpp.

◆ ~DrawCommands()

DrawCommands::~DrawCommands ( )

Definition at line 64 of file drawcommands.cpp.

Member Function Documentation

◆ addClusters()

void DrawCommands::addClusters ( uint16_t  cmdId,
uint32_t  meshletCount 
)

Definition at line 178 of file drawcommands.cpp.

◆ commandId()

uint16_t DrawCommands::commandId ( const Material m,
Type  type,
uint32_t  bucketId 
)

Definition at line 144 of file drawcommands.cpp.

◆ commit()

void DrawCommands::commit ( Tempest::Encoder< Tempest::CommandBuffer > &  cmd)

Definition at line 192 of file drawcommands.cpp.

◆ drawCommon()

void DrawCommands::drawCommon ( Tempest::Encoder< Tempest::CommandBuffer > &  cmd,
SceneGlobals::VisCamera  viewId,
Material::AlphaFunc  func 
)

Definition at line 435 of file drawcommands.cpp.

◆ drawHiZ()

void DrawCommands::drawHiZ ( Tempest::Encoder< Tempest::CommandBuffer > &  cmd)

Definition at line 406 of file drawcommands.cpp.

◆ drawVsm()

void DrawCommands::drawVsm ( Tempest::Encoder< Tempest::CommandBuffer > &  cmd)

Definition at line 359 of file drawcommands.cpp.

◆ maxMeshlets()

size_t DrawCommands::maxMeshlets ( ) const
inline

Definition at line 50 of file drawcommands.h.

◆ operator[]()

const DrawCmd & DrawCommands::operator[] ( size_t  i) const
inline

Definition at line 49 of file drawcommands.h.

◆ resetRendering()

void DrawCommands::resetRendering ( )

Definition at line 183 of file drawcommands.cpp.

◆ visibilityPass()

void DrawCommands::visibilityPass ( Tempest::Encoder< Tempest::CommandBuffer > &  cmd,
int  pass 
)

Definition at line 266 of file drawcommands.cpp.

◆ visibilityVsm()

void DrawCommands::visibilityVsm ( Tempest::Encoder< Tempest::CommandBuffer > &  cmd)

Definition at line 321 of file drawcommands.cpp.


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