Drawable

Nodes that are meant to render something in to the Inochi2D scene Other nodes don't have to render anything and serve mostly other purposes.

The main types of Drawables are Parts and Masks

Constructors

this
this(Node parent)

Constructs a new drawable surface

this
this(MeshData data, Node parent)

Constructs a new drawable surface

this
this(MeshData data, uint uuid, Node parent)

Constructs a new drawable surface

Members

Functions

beginUpdate
void beginUpdate()
Undocumented in source. Be warned that the author may not have intended to support it.
bindIndex
void bindIndex()

Binds Index Buffer for rendering

deserializeFromFghj
SerdeException deserializeFromFghj(Fghj data)
Undocumented in source. Be warned that the author may not have intended to support it.
drawBounds
void drawBounds()

Draws bounds

drawMeshLines
void drawMeshLines()

Draws line of mesh

drawMeshPoints
void drawMeshPoints()

Draws the points of the mesh

drawOne
void drawOne()

Draws the drawable

drawOneDirect
void drawOneDirect(bool forMasking)

Draws the drawable without any processing

getMesh
MeshData getMesh()

Returns the mesh data for this Part.

rebuffer
void rebuffer(MeshData data)

Changes this mesh's data

refresh
void refresh()

Refreshes the drawable, updating its vertices

refreshDeform
void refreshDeform()

Refreshes the drawable, updating its deformation deltas

renderMask
void renderMask(bool dodge)
Undocumented in source.
reset
void reset()

Resets the vertices of this drawable

serializeSelf
void serializeSelf(InochiSerializer serializer)

Allows serializing self data (with pretty serializer)

serializeSelf
void serializeSelf(InochiSerializerCompact serializer)

Allows serializing self data (with compact serializer)

typeId
string typeId()
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update()

Updates the drawable

updateBounds
void updateBounds()

Updates the drawable's bounds

vertices
vec2[] vertices()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

bounds
vec4 bounds;

The bounds of this drawable

data
MeshData data;

The mesh data of this part

dbo
GLuint dbo;

OpenGL Vertex Buffer Object for deformation

deformStack
DeformationStack deformStack;

Deformation stack

deformation
vec2[] deformation;

Deformation offset to apply

ibo
GLuint ibo;

OpenGL Index Buffer Object

vbo
GLuint vbo;

OpenGL Vertex Buffer Object

Meta