Exemple #1
0
 private void drawCharacter(Vector2 position, Vector2 size, Vector2 positionUV, Vector2 sizeUV, Vector4 color)
 {
     shaderPosition.Set(position);
     shaderSize.Set(size);
     shaderPositionUV.Set(positionUV);
     shaderSizeUV.Set(sizeUV);
     shaderColor.Set(color);
     shader.Apply();
     vertexBuffer.Draw();
 }