small documentation

This commit is contained in:
h4570
2022-07-23 21:05:20 +02:00
parent 91ba265310
commit 91e425e0f8
5 changed files with 33 additions and 9 deletions
@@ -19,6 +19,12 @@
namespace Tyra {
/**
* Pipeline for animated models (DynamicMesh).
* Supports:
* - Simple PS2 clipping (culling)
* - Modes: color, texture+color, dir lights, texture + dir lights
*/
class DynamicPipeline : public Renderer3DPipeline {
public:
DynamicPipeline();
@@ -33,7 +39,7 @@ class DynamicPipeline : public Renderer3DPipeline {
void onUse();
/**
* Render 3D via "meshes".
* Render dynamic model.
* This render() method is a bridge to core.render() method.
*/
void render(DynamicMesh* mesh, const DynPipOptions* options = nullptr);
@@ -18,6 +18,10 @@
namespace Tyra {
/**
* Pipeline specialized in fast rendering of voxels
* Supports full "against each plane" clipping
*/
class MinecraftPipeline : public Renderer3DPipeline {
public:
MinecraftPipeline();
@@ -27,8 +31,18 @@ class MinecraftPipeline : public Renderer3DPipeline {
void onUse();
/**
* @brief Render voxels
*
* @param blocks blocks to render
* @param count number of blocks to render
* @param t_tex texture to use
* @param isMulti is this a 6 texture voxel?
* @param noFullClipChecks true = faster, simple PS2 clipping. False = slower
* "against each plane" clipping.
*/
void render(McpipBlock* blocks, const u32& count, Texture* t_tex,
const bool& isMulti = false, const bool& noClipChecks = true);
const bool& isMulti = false, const bool& noFullClipChecks = true);
inline const float& getTextureOffset() const {
return manager.getTextureOffset();
@@ -20,6 +20,12 @@
namespace Tyra {
/**
* Pipeline for static models (StaticMesh).
* Supports:
* - Full "against each plane" clipping,
* - Modes: color(s), texture+color(s), dir lights, texture + dir lights
*/
class StaticPipeline : public Renderer3DPipeline {
public:
StaticPipeline();
@@ -32,7 +38,7 @@ class StaticPipeline : public Renderer3DPipeline {
void onUse();
/**
* Render 3D via "meshes".
* Render static model
* This render() method is a bridge to core.render() method.
*/
void render(DynamicMesh* mesh, const StaPipOptions* options = nullptr);