Part

Dynamic Mesh Part

Constructors

this
this(MeshData data, Texture[] textures, Node parent)

Constructs a new part

this
this(Node parent)

Constructs a new part

this
this(MeshData data, Texture[] textures, uint uuid, Node parent)

Constructs a new part

Members

Functions

activeTexture
Texture activeTexture()

Gets the active texture

beginUpdate
void beginUpdate()
Undocumented in source. Be warned that the author may not have intended to support it.
deserializeFromFghj
SerdeException deserializeFromFghj(Fghj data)
Undocumented in source. Be warned that the author may not have intended to support it.
dodgeCount
size_t dodgeCount()
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw()
Undocumented in source. Be warned that the author may not have intended to support it.
drawOne
void drawOne()
Undocumented in source. Be warned that the author may not have intended to support it.
drawOneDirect
void drawOneDirect(bool forMasking)
Undocumented in source. Be warned that the author may not have intended to support it.
finalize
void finalize()
Undocumented in source. Be warned that the author may not have intended to support it.
getDefaultValue
float getDefaultValue(string key)
Undocumented in source. Be warned that the author may not have intended to support it.
getMaskIdx
ptrdiff_t getMaskIdx(Drawable drawable)
Undocumented in source. Be warned that the author may not have intended to support it.
getMaskIdx
ptrdiff_t getMaskIdx(uint uuid)
Undocumented in source. Be warned that the author may not have intended to support it.
hasParam
bool hasParam(string key)
Undocumented in source. Be warned that the author may not have intended to support it.
isMaskedBy
bool isMaskedBy(Drawable drawable)
Undocumented in source. Be warned that the author may not have intended to support it.
maskCount
size_t maskCount()
Undocumented in source. Be warned that the author may not have intended to support it.
rebuffer
void rebuffer(MeshData data)
Undocumented in source. Be warned that the author may not have intended to support it.
renderMask
void renderMask(bool dodge)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeSelf
void serializeSelf(InochiSerializer serializer)

Allows serializing self data (with pretty serializer)

serializeSelf
void serializeSelf(InochiSerializerCompact serializer)

Allows serializing self data (with compact serializer)

setValue
bool setValue(string key, float value)
Undocumented in source. Be warned that the author may not have intended to support it.
typeId
string typeId()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

blendingMode
BlendMode blendingMode;

Blending mode

maskAlphaThreshold
float maskAlphaThreshold;

Alpha Threshold for the masking system, the higher the more opaque pixels will be discarded in the masking process

masks
MaskBinding[] masks;

List of masks to apply

offsetMaskThreshold
float offsetMaskThreshold;
Undocumented in source.
offsetOpacity
float offsetOpacity;
Undocumented in source.
offsetTint
vec3 offsetTint;
Undocumented in source.
opacity
float opacity;

Opacity of the mesh

textures
Texture[] textures;

List of textures this part can use

tint
vec3 tint;

Tint of color based texture

Inherited Members

From Drawable

ibo
GLuint ibo;

OpenGL Index Buffer Object

vbo
GLuint vbo;

OpenGL Vertex Buffer Object

dbo
GLuint dbo;

OpenGL Vertex Buffer Object for deformation

data
MeshData data;

The mesh data of this part

bindIndex
void bindIndex()

Binds Index Buffer for rendering

renderMask
void renderMask(bool dodge)
Undocumented in source.
serializeSelf
void serializeSelf(InochiSerializer serializer)

Allows serializing self data (with pretty serializer)

serializeSelf
void serializeSelf(InochiSerializerCompact serializer)

Allows serializing self data (with compact serializer)

deserializeFromFghj
SerdeException deserializeFromFghj(Fghj data)
Undocumented in source. Be warned that the author may not have intended to support it.
vertices
vec2[] vertices()
Undocumented in source. Be warned that the author may not have intended to support it.
deformation
vec2[] deformation;

Deformation offset to apply

bounds
vec4 bounds;

The bounds of this drawable

deformStack
DeformationStack deformStack;

Deformation stack

refresh
void refresh()

Refreshes the drawable, updating its vertices

refreshDeform
void refreshDeform()

Refreshes the drawable, updating its deformation deltas

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

Updates the drawable

drawOne
void drawOne()

Draws the drawable

drawOneDirect
void drawOneDirect(bool forMasking)

Draws the drawable without any processing

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

Updates the drawable's bounds

drawBounds
void drawBounds()

Draws bounds

drawMeshLines
void drawMeshLines()

Draws line of mesh

drawMeshPoints
void drawMeshPoints()

Draws the points of the mesh

getMesh
MeshData getMesh()

Returns the mesh data for this Part.

rebuffer
void rebuffer(MeshData data)

Changes this mesh's data

reset
void reset()

Resets the vertices of this drawable

Meta