|
| C3D_API | TriFaceMapping (Submesh &submesh, VkBufferUsageFlags bufferUsageFlags={}) |
| | Constructor. More...
|
| |
| C3D_API void | clearFaces () |
| | Clears this submesh's face array. More...
|
| |
| C3D_API Face | addFace (uint32_t a, uint32_t b, uint32_t c) |
| | Creates and adds a face to the submesh. More...
|
| |
| C3D_API void | addFaceGroup (FaceIndices const *const begin, FaceIndices const *const end) |
| | Creates and adds faces to the submesh. More...
|
| |
| C3D_API void | addQuadFace (uint32_t a, uint32_t b, uint32_t c, uint32_t d, castor::Point3f const &minUV=castor::Point3f(), castor::Point3f const &maxUV=castor::Point3f(1, 1, 1)) |
| | Creates and adds a quad face to the submesh. More...
|
| |
| C3D_API void | computeFacesFromPolygonVertex () |
| | Creates faces from the points. More...
|
| |
| C3D_API void | computeNormals (InterleavedVertexArray &points, bool reverted=false) const |
| | Computes normal and tangent for each vertex of the given face. More...
|
| |
| C3D_API void | computeNormals (Face const &face) |
| | Computes normal and tangent for each vertex of the given face. More...
|
| |
| C3D_API void | computeNormals (InterleavedVertexArray &points, Face const &face) const |
| | Computes normal and tangent for each vertex of the given face. More...
|
| |
| C3D_API void | computeTangents (Face const &face) |
| | Computes tangent for each vertex of the given face. More...
|
| |
| C3D_API void | computeTangents (InterleavedVertexArray &points, Face const &face) const |
| | Computes tangent for each vertex of the given face. More...
|
| |
| C3D_API void | computeTangentsFromNormals () |
| | Computes tangent for each vertex of the submesh. More...
|
| |
| C3D_API void | computeTangentsFromNormals (InterleavedVertexArray &points) const |
| | Computes tangent for each vertex of the submesh. More...
|
| |
| C3D_API uint32_t | getCount () const override |
| |
| C3D_API uint32_t | getComponentsCount () const override |
| |
| C3D_API void | sortByDistance (castor::Point3f const &cameraPosition) override |
| | Sorts the face from farthest to nearest from the camera. More...
|
| |
| C3D_API void | computeNormals (bool reverted=false) override |
| | Generates normals and tangents. More...
|
| |
| C3D_API SubmeshComponentSPtr | clone (Submesh &submesh) const override |
| |
| void | addFaceGroup (std::vector< FaceIndices > const &faces) |
| | Creates and adds faces to the submesh. More...
|
| |
| template<size_t Count> |
| void | addFaceGroup (std::array< FaceIndices, Count > const &faces) |
| | Creates and adds faces to the submesh. More...
|
| |
| template<uint32_t Count> |
| void | addFaceGroup (FaceIndices(&faces)[Count]) |
| | Creates and adds faces to the submesh. More...
|
| |
| Face const & | operator[] (uint32_t index) const |
| | Retrieves the face at given index. More...
|
| |
| FaceArray const & | getFaces () const |
| |
| FaceArray & | getFaces () |
| |
| C3D_API | IndexMapping (Submesh &submesh, castor::String const &type, VkBufferUsageFlags bufferUsageFlags) |
| | Constructor. More...
|
| |
| virtual C3D_API uint32_t | getCount () const =0 |
| |
| virtual C3D_API uint32_t | getComponentsCount () const =0 |
| |
| virtual C3D_API void | sortByDistance (castor::Point3f const &cameraPosition)=0 |
| | Sorts the face from farthest to nearest from the camera. More...
|
| |
| virtual C3D_API void | computeNormals (bool reverted=false)=0 |
| | Generates normals and tangents. More...
|
| |
| void | gather (ShaderFlags const &shaderFlags, ProgramFlags const &programFlags, MaterialRPtr material, ashes::BufferCRefArray &buffers, std::vector< uint64_t > &offsets, ashes::PipelineVertexInputStateCreateInfoCRefArray &layouts, TextureFlagsArray const &mask, uint32_t ¤tLocation) override |
| | Gathers buffers that need to go in a vertex layout. More...
|
| |
| ProgramFlags | getProgramFlags (MaterialRPtr material) const override |
| |
| VkBufferUsageFlags | getUsageFlags () const override |
| |
| C3D_API | SubmeshComponent (Submesh &submesh, castor::String const &type, uint32_t id) |
| | Constructor. More...
|
| |
| virtual C3D_API | ~SubmeshComponent () noexcept=default |
| | Destructor. More...
|
| |
| C3D_API bool | initialise (RenderDevice const &device) |
| | Initialises the submesh. More...
|
| |
| C3D_API void | cleanup (RenderDevice const &device) |
| | Cleans the submesh. More...
|
| |
| C3D_API void | upload () |
| | Uploads data on VRAM. More...
|
| |
| virtual C3D_API void | gather (ShaderFlags const &shaderFlags, ProgramFlags const &programFlags, MaterialRPtr material, ashes::BufferCRefArray &buffers, std::vector< uint64_t > &offsets, ashes::PipelineVertexInputStateCreateInfoCRefArray &layouts, TextureFlagsArray const &mask, uint32_t ¤tLocation)=0 |
| | Gathers buffers that need to go in a vertex layout. More...
|
| |
| virtual C3D_API ProgramFlags | getProgramFlags (MaterialRPtr material) const =0 |
| |
| virtual C3D_API VkBufferUsageFlags | getUsageFlags () const |
| |
| virtual C3D_API SubmeshComponentSPtr | clone (Submesh &submesh) const =0 |
| |
| castor::String const & | getType () const |
| |
| void | needsUpdate () |
| | Sets the component to be updated. More...
|
| |
| uint32_t | getID () |
| |