![]() |
Kochol Game Engine
0.1.0
|
#include <Mesh.h>
Public Member Functions | |
| Mesh () | |
| Constructor. | |
| Mesh (SceneManager *sn, gfx::Renderer *rn) | |
| ~Mesh () | |
| void | PreRender (float elapsedTime=0.0f) |
| Karhayee ke Ghabl az render bayad anjam shvad. Mesle colision detection. | |
| void | Render () |
| Render the mesh. | |
| void | Render (bool bPosition, bool bNormalTexcoord, bool bTangentBinormal) |
| Render with options. | |
| virtual void | PostRender () |
| Karhaee ke bad az render bayad anjam beshe. | |
| virtual bool | AddEffect (efx::EffectType p, efx::Effect **ppOut) |
| virtual void | Draw (bool WithMaterial, bool WithTransform, bool bPosition, bool bNormalTexcoord, bool bTangentBinormal) |
| virtual void | PrepareBuffers (bool CreateTangents=false, bool Dynamic=false) |
| virtual void | RefillBuffers () |
| Refills vertex and index buffers. | |
Public Member Functions inherited from kge::sn::SceneNode | |
| SceneNode () | |
| Constructor. | |
| virtual | ~SceneNode () |
| Destructor. | |
| virtual void | AddChild (SceneNode *child) |
| Adds a node as child. | |
| virtual void | SetSceneManager (SceneManager *smgr) |
| Sets the scene manager and renderer pointer. | |
| virtual void | SetPosition (const math::Vector &v) |
| Set the position of the scenenode. | |
| virtual void | SetRotation (const math::Vector &v) |
| Set the rotation of the scenenode. | |
| virtual void | SetScale (const math::Vector &v) |
| Set the scale of the scenenode. | |
| virtual void | SetAutomaticCulling (bool isTrue) |
| Set Cutting Enable or Disable. | |
| virtual void | SetVisible (bool isVisible) |
| Set Visible Enable or Disable. | |
| virtual bool | GetVisible () |
| Get Visible. | |
| virtual bool | IsVisibleInFrame () |
| Is it visible in this frame? | |
| virtual const math::Vector & | GetPosition () const |
| Returns the node position. | |
| virtual const math::Vector & | GetRotation () const |
| Returns the node rotation. | |
| virtual const math::Vector & | GetScale () const |
| Returns the node scale. | |
| virtual math::Matrix * | GetAbsoluteMatrix () const |
| Get the absolute matrix. | |
| virtual math::Matrix * | GetFinalMatrix () |
| Get the final matrix. | |
| virtual u32 | GetMaterialCount () |
| Get the count of materials this node has. | |
| virtual gfx::Material * | GetMaterial (u32 Index) |
| virtual math::Sphere * | GetBoundingBox () |
| Returns the node bounding box. | |
| virtual math::AABB * | GetAxisAlignedBoundingBox () |
| Returns the node Axis aligned bounding box. | |
| virtual NodeType | GetType () const |
| Returns the node type. | |
| virtual void | RemoveChild (SceneNode *child) |
| virtual void | RemoveChildren () |
| Removes all children of this node. | |
| virtual const SceneNode * | GetParent () |
| Returns the node parent. | |
| virtual void | SetParent (SceneNode *parent) |
| Sets the node parent. | |
| virtual void | SetName (const char *name) |
| Sets the node name. | |
| virtual core::String * | GetName () |
| Gets the node name. | |
| virtual void | SetID (int ID) |
| Sets the node ID. | |
| virtual int | GetID () |
| Gets the node ID. | |
| void | EnableShadow (bool enable) |
| bool | HasShadow () const |
| virtual void | UpdateFinalMat () |
| Update final matrix. | |
Public Member Functions inherited from kge::KgeUnknown | |
| KgeUnknown () | |
| Constructor. | |
| virtual | ~KgeUnknown () |
| Destructor. | |
| virtual void | AddRef () |
| Add a reference to the object. | |
| virtual void | DecRef () |
| Decrease a reference from the object. if its reference count get 0 then the object will destroy. | |
| u32 | GetRefCount () |
| Return resource reference count. | |
| const char * | GetDebugText () |
| returns the instance debug text. | |
Public Attributes | |
| core::String | m_sName |
| gfx::Vertex3TN * | m_pVerts |
| gfx::Vertex3 * | m_pPos |
| gfx::Vertex3T * | m_pNorTex |
| gfx::VertexNTC * | m_pNorTexColor |
| gfx::Vertex3 * | m_pTangentBinormal |
| u16 * | m_pIndices |
| u32 * | m_pIndices32 |
| u32 | m_NumVerts |
| u32 | m_NumIndices |
| gfx::HardwareBuffer * | m_pIndexBuffer |
| gfx::HardwareBuffer * | m_pvbPosition |
| gfx::HardwareBuffer * | m_pvbNormalTexcoord |
| gfx::HardwareBuffer * | m_pvbTangentBinormal |
| s16 * | m_Bone |
| bool | m_bHasMat |
| Has a material? | |
| bool | m_bInstanced |
| Instanced mesh. | |
| gfx::Material | m_Mat |
| gfx::Renderer * | m_pRenderer |
| gfx::VertexDec * | m_pVertexDec |
Protected Member Functions | |
| void | CreateMirrorPlane (efx::Effect **ppCreatedMirror) |
| void | CreateShadowPlane (efx::Effect **ppCreatedShadow, math::Vector &vLightDir) |
| void | CreateTangentBinormalBuffers (bool Dynamic) |
| Create tangent and binormal buffers. | |
| void | PrepareBuffers2 (bool CreateTangents, bool Dynamic) |
| Prepare the buffers for multi stream. | |
| void | CreateTangentBinormalBuffers2 (bool Dynamic) |
| Create tangent and binormal buffers. | |
Protected Member Functions inherited from kge::sn::SceneNode | |
| virtual bool | HasThisEffect (efx::EffectType p) |
Protected Member Functions inherited from kge::KgeUnknown | |
| void | SetDebugText (char *text) |
Friends | |
| class | MeshMS3D |
Additional Inherited Members | |
Protected Attributes inherited from kge::sn::SceneNode | |
| core::String | m_sName |
| int | m_iID |
| SceneManager * | m_pSnMan |
| gfx::Renderer * | m_pRenderer |
| bool | m_bVis |
| bool | m_bAutoCulling |
| bool | m_bVisFrame |
| SceneNode * | m_pParent |
| std::vector< SceneNode * > | m_vChilds |
| std::vector< int > | m_vEffectType |
| std::vector< efx::Effect * > | m_vEffect |
| math::Matrix * | m_pAbsMat |
| math::Matrix * | m_pFinalMat |
| math::Vector | m_Position |
| math::Vector | m_Rotation |
| math::Vector | m_Scale |
| math::Sphere * | m_pBB |
| math::AABB * | m_pAABB |
| NodeType | m_eNodeType |
| bool | m_hasShadow |
| kge::sn::Mesh::Mesh | ( | ) |
Constructor.
| kge::sn::Mesh::Mesh | ( | SceneManager * | sn, |
| gfx::Renderer * | rn | ||
| ) |
Constructor.
| sn | A pointer to SceneManager. |
| rn | A pointer to Renderer. |
| kge::sn::Mesh::~Mesh | ( | ) |
|
virtual |
Ezafe kardane effect be hamin gereh.
| p | Effecti ke mikhahid ezafe konid. |
| ppOut | Class Effect sakhte shode. |
Reimplemented from kge::sn::SceneNode.
|
protected |
|
protected |
|
protected |
Create tangent and binormal buffers.
|
protected |
Create tangent and binormal buffers.
|
virtual |
Draw the mesh with/without its Materials and Transforms.
| WithMaterial | Draw it with its own materials or not? |
| WithMaterial | Draw it with its own Transformations or not? |
Implements kge::sn::SceneNode.
|
virtual |
Karhaee ke bad az render bayad anjam beshe.
Implements kge::sn::SceneNode.
|
virtual |
Prepare the buffers for multi stream
|
protected |
Prepare the buffers for multi stream.
|
virtual |
Karhayee ke Ghabl az render bayad anjam shvad. Mesle colision detection.
Implements kge::sn::SceneNode.
|
virtual |
Refills vertex and index buffers.
|
virtual |
Render the mesh.
Implements kge::sn::SceneNode.
| void kge::sn::Mesh::Render | ( | bool | bPosition, |
| bool | bNormalTexcoord, | ||
| bool | bTangentBinormal | ||
| ) |
Render with options.
| gfx::Material kge::sn::Mesh::m_Mat |
| gfx::HardwareBuffer* kge::sn::Mesh::m_pIndexBuffer |
| gfx::Vertex3T* kge::sn::Mesh::m_pNorTex |
| gfx::VertexNTC* kge::sn::Mesh::m_pNorTexColor |
| gfx::Vertex3* kge::sn::Mesh::m_pPos |
| gfx::Renderer* kge::sn::Mesh::m_pRenderer |
| gfx::Vertex3* kge::sn::Mesh::m_pTangentBinormal |
| gfx::HardwareBuffer * kge::sn::Mesh::m_pvbNormalTexcoord |
| gfx::HardwareBuffer * kge::sn::Mesh::m_pvbPosition |
| gfx::HardwareBuffer * kge::sn::Mesh::m_pvbTangentBinormal |
| gfx::VertexDec* kge::sn::Mesh::m_pVertexDec |
| gfx::Vertex3TN* kge::sn::Mesh::m_pVerts |
| core::String kge::sn::Mesh::m_sName |