KiCad PCB EDA Suite
vertex_common.h File Reference

Common defines and consts used in vertex related classes. More...

#include <GL/glew.h>
#include <cstddef>

Go to the source code of this file.

Classes

struct  KIGFX::VERTEX
 

Namespaces

 KIGFX
 Class CAIRO_GAL is the cairo implementation of the graphics abstraction layer.
 

Enumerations

enum  KIGFX::SHADER_MODE {
  KIGFX::SHADER_NONE = 0, KIGFX::SHADER_LINE, KIGFX::SHADER_FILLED_CIRCLE, KIGFX::SHADER_STROKED_CIRCLE,
  KIGFX::SHADER_FONT
}
 

Variables

const size_t KIGFX::VertexSize = sizeof(VERTEX)
 
const size_t KIGFX::VertexStride = VertexSize / sizeof(GLfloat)
 
const size_t KIGFX::CoordSize = sizeof(VERTEX().x) + sizeof(VERTEX().y) + sizeof(VERTEX().z)
 
const size_t KIGFX::CoordStride = CoordSize / sizeof(GLfloat)
 
const size_t KIGFX::ColorOffset = offsetof(VERTEX, r)
 
const size_t KIGFX::ColorSize
 
const size_t KIGFX::ColorStride = ColorSize / sizeof(GLubyte)
 
const size_t KIGFX::ShaderOffset = offsetof(VERTEX, shader)
 
const size_t KIGFX::ShaderSize = sizeof(VERTEX().shader)
 
const size_t KIGFX::ShaderStride = ShaderSize / sizeof(GLfloat)
 
const size_t KIGFX::IndexSize = sizeof(GLuint)
 

Detailed Description

Common defines and consts used in vertex related classes.

Definition in file vertex_common.h.