PrepareToDraw ( Matrix mvpMatrix, bool premultipliedAlpha, float alpha, bool useTinting, Texture texture = null ) : void |
Activates the optimal shader program for the current settings; alpha and matrix uniforms are passed to the program right away, and the texture (if available) is bound. Parameters: mvpMatrix: The modelview-projection matrix used for rendering. Any vertex will be multiplied with this matrix. premultipliedAlpha: Indicates if the color values of texture and vertices use premultiplied alpha. alpha: The alpha value with which every vertex color will be multiplied. useTinting: Set to true if you dont use textures or want to use alpha. texture: The texture that's projected onto the quad, or 'null' if there is none. |
|