Bases: kivy.graphics.instructions.ContextInstruction
Instruction to set the line width of the drawing context
Bases: kivy.graphics.instructions.ContextInstruction
Instruction to set the color state for any vetices being drawn after it
Bases: kivy.graphics.instructions.ContextInstruction
BindTexture Graphic instruction. The BindTexture Instruction will bind a texture and enable GL_TEXTURE_2D for subsequent drawing.
Parameters : |
|
---|
Set/get the source (filename) to load for texture.
Bases: kivy.graphics.instructions.ContextInstruction
PushMatrix on context’s matrix stack
Bases: kivy.graphics.instructions.ContextInstruction
Pop Matrix from context’s matrix stack onto model view
Bases: kivy.graphics.context_instructions.Transform
Rotate the coordinate space by applying a rotation transformation on the modelview matrix. You can set the properties of the instructions afterwards with e.g.:
rot.angle = 90
rot.axis = (0,0,1)
Property for getting/settings the angle of the rotation
Property for getting/settings the axis of the rotation
The format of the axis is (x, y, z).
Set the angle and axis of rotation
>>> rotationobject.set(90, 0, 0, 1)
Bases: kivy.graphics.context_instructions.Transform
Instruction to perform a uniform scale transformation
Property for getting/setting the scale.
The same scale value is applied on all axis.
Bases: kivy.graphics.context_instructions.Transform
Instruction to create a translation of the model view coordinate space
Property for getting/setting the translation on X axis
2 tuple with translation vector in 2D for x and y axis
3 tuple translation vector in 3D in x, y, and z axis
Property for getting/setting the translation on Y axis
Property for getting/setting the translation on Z axis
Bases: kivy.graphics.instructions.ContextInstruction
Base class for Matrix Instruction on canvas
Matrix property. Numpy matrix from transformation module setting the matrix using this porperty when a change is made is important, becasue it will notify the context about the update
gl_init_resources()