Esempio n. 1
0
        public void SetImage(string path)
        {
            filePath = path;
            texture  = GLUtils.LoadImage(Application.StartupPath + filePath);

            if (AutoResizeWidget)
            {
                MatchTextureBounds(Owner);
            }
        }
Esempio n. 2
0
 public void GenerateVertexArrray_Buffer()
 {
     GLUtils.CreateVertexArraysQBF(sizeof(float) * 16 * DEFAULT_MATRIX_SIZE, out vertexarrayID, out vertexbufferID);
 }
Esempio n. 3
0
 public void GenerateVertexArray()
 {
     GLUtils.CreateVertexArraysQBF(sizeof(float) * 16, out vertexArray, out vertexbuffer);
 }
Esempio n. 4
0
 public override void Initialize()
 {
     texture = GLUtils.LoadImage(Application.StartupPath + filePath);
     MatchTextureBounds(Owner);
 }