3rd Eye Scene C#
3rd Eye Scene C# documentation
|
Shape handler for mesh shapes. More...
Classes | |
class | MeshDataComponent |
Tracks support data for mesh shapes. More... | |
Public Member Functions | |
MeshHandler (Runtime.CategoryCheckDelegate categoryCheck) | |
Create the shape handler. | |
override void | Initialise (GameObject root, GameObject serverRoot, MaterialLibrary materials) |
Initialise, caching the MaterialLibrary. | |
override void | Reset () |
Overridden to release mesh resources. | |
override void | PreRender () |
Finalises Unity mesh objects. | |
override void | BeginFrame (uint frameNumber, bool maintainTransient) |
Overridden to release mesh resources. | |
Protected Member Functions | |
override GameObject | CreateObject () |
Overridden to add MeshDataComponent. | |
override Shapes.Shape | CreateSerialisationShape (ShapeComponent shapeComponent) |
Creates a mesh shape for serialising shapeComponent and its associated mesh data. | |
override Error | PostHandleMessage (GameObject obj, CreateMessage msg, PacketBuffer packet, BinaryReader reader) |
Handle triangle count. | |
override Error | HandleMessage (DataMessage msg, PacketBuffer packet, BinaryReader reader) |
Overridden to handle triangle data in the msg | |
override Error | PostHandleMessage (GameObject obj, DestroyMessage msg, PacketBuffer packet, BinaryReader reader) |
Overridden to clear mesh data and release resources even for transient objects. | |
void | FinaliseMesh (GameObject obj, ShapeComponent shape, MeshDataComponent meshData, Material material, Color32 colour) |
Finalises the mesh object an child objects. | |
Properties | |
override string | Name [get] |
Handler name. | |
override ushort | RoutingID [get] |
ShapeID.Mesh | |
override Mesh | SolidMesh [get] |
Irrelevant. | |
override Mesh | WireframeMesh [get] |
Irrelevant. |
Shape handler for mesh shapes.
Mesh shapes represent pseudo immediate mode rendering of vertex data with optional indexing.
Tes::Handlers::Shape3D::MeshHandler::MeshHandler | ( | Runtime.CategoryCheckDelegate | categoryCheck | ) | [inline] |
Create the shape handler.
categoryCheck |
override void Tes::Handlers::Shape3D::MeshHandler::BeginFrame | ( | uint | frameNumber, |
bool | maintainTransient | ||
) | [inline, virtual] |
Overridden to release mesh resources.
frameNumber | |
maintainTransient |
Reimplemented from Tes::Handlers::ShapeHandler.
override GameObject Tes::Handlers::Shape3D::MeshHandler::CreateObject | ( | ) | [inline, protected, virtual] |
Overridden to add MeshDataComponent.
Reimplemented from Tes::Handlers::ShapeHandler.
override Shapes.Shape Tes::Handlers::Shape3D::MeshHandler::CreateSerialisationShape | ( | ShapeComponent | shapeComponent | ) | [inline, protected, virtual] |
Creates a mesh shape for serialising shapeComponent and its associated mesh data.
shapeComponent | The component to create a shape for. |
Implements Tes::Handlers::ShapeHandler.
void Tes::Handlers::Shape3D::MeshHandler::FinaliseMesh | ( | GameObject | obj, |
ShapeComponent | shape, | ||
MeshDataComponent | meshData, | ||
Material | material, | ||
Color32 | colour | ||
) | [inline, protected] |
Finalises the mesh object an child objects.
obj | Game object to set the mesh on or create children on. |
shape | The ShapeComponent belonging to obj . |
meshData | Mesh vertex and index data. |
material | Material to render with. Chosen based on topology. |
colour | The mesh render colour. |
override Error Tes::Handlers::Shape3D::MeshHandler::HandleMessage | ( | DataMessage | msg, |
PacketBuffer | packet, | ||
BinaryReader | reader | ||
) | [inline, protected, virtual] |
Overridden to handle triangle data in the msg
msg | |
packet | |
reader |
Reimplemented from Tes::Handlers::ShapeHandler.
override void Tes::Handlers::Shape3D::MeshHandler::Initialise | ( | GameObject | root, |
GameObject | serverRoot, | ||
MaterialLibrary | materials | ||
) | [inline, virtual] |
Initialise, caching the MaterialLibrary.
root | |
serverRoot | |
materials |
Reimplemented from Tes::Handlers::ShapeHandler.
override Error Tes::Handlers::Shape3D::MeshHandler::PostHandleMessage | ( | GameObject | obj, |
CreateMessage | msg, | ||
PacketBuffer | packet, | ||
BinaryReader | reader | ||
) | [inline, protected, virtual] |
Handle triangle count.
obj | |
msg | |
packet | |
reader |
Reimplemented from Tes::Handlers::ShapeHandler.
override Error Tes::Handlers::Shape3D::MeshHandler::PostHandleMessage | ( | GameObject | obj, |
DestroyMessage | msg, | ||
PacketBuffer | packet, | ||
BinaryReader | reader | ||
) | [inline, protected, virtual] |
Overridden to clear mesh data and release resources even for transient objects.
obj | |
msg | |
packet | |
reader |
Reimplemented from Tes::Handlers::ShapeHandler.
override ushort Tes::Handlers::Shape3D::MeshHandler::RoutingID [get] |
ShapeID.Mesh
Reimplemented from Tes::Runtime::MessageHandler.
override Mesh Tes::Handlers::Shape3D::MeshHandler::SolidMesh [get] |
override Mesh Tes::Handlers::Shape3D::MeshHandler::WireframeMesh [get] |