Fission FSN
Loading...
Searching...
No Matches
fsITexturedMeshRenderData.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: fsITexturedMeshRenderData.h
4*
5* Purpose: Backend-neutral render data for an indexed textured mesh.
6*
7*********************************************************************/
8
9#ifndef fsITexturedMeshRenderDatahdr
10#define fsITexturedMeshRenderDatahdr
11
12#include "fsISpriteRenderData.h"
13
14
16{
17public:
18
19 // Replaces the current mesh only when every triangle index is valid.
20 // An empty mesh is valid and clears the geometry.
21 fsBool meshSet(const fsSPolyInfo& pMesh);
22 const fsSPolyInfo& meshGet() const;
23
24 static fsBool meshValidGet(const fsSPolyInfo& pMesh);
25
26 ~fsITexturedMeshRenderData() override = default;
27
28protected:
29
30 virtual void meshSetDo(const fsSPolyInfo& pMesh) {}
31
33
34private:
35
36 fsSPolyInfo mMesh;
37};
38
39#endif
fsISpriteRenderData()
Definition fsISpriteRenderData.cpp:89
~fsITexturedMeshRenderData() override=default
fsBool meshSet(const fsSPolyInfo &pMesh)
Definition fsITexturedMeshRenderData.cpp:4
virtual void meshSetDo(const fsSPolyInfo &pMesh)
Definition fsITexturedMeshRenderData.h:30
static fsBool meshValidGet(const fsSPolyInfo &pMesh)
Definition fsITexturedMeshRenderData.cpp:21
fsITexturedMeshRenderData()=default
const fsSPolyInfo & meshGet() const
Definition fsITexturedMeshRenderData.cpp:16
bool fsBool
Definition fsBaseTypes.h:26
Definition fsIRenderData.h:44