public void RenderGuiElement(GuiComponent component)
 {
     GL.PushMatrix();
     GL.Translate(component.x, component.y, 0);
     GL.Scale(component.width, component.height, 0);
     int bufferoffset = 0;
     if(component.invertX)
         bufferoffset += 8; //Push to second "row"
     if(component.invertY)
         bufferoffset += 4; //push to second column
     vertexbuffer.Render(BeginMode.Quads, bufferoffset, 4);
     GL.PopMatrix();
 }
Пример #2
0
 public void UnLinkComponent(GuiComponent component)
 {
     tempComponents.Remove(component);
 }
Пример #3
0
 public void LinkComponent(GuiComponent component)
 {
     tempComponents.Add(component);
 }