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
 

Data structure for vertices {X,Y,Z,R,G,B,A,shader&param}

More...
 

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
}
 

Possible types of shaders

More...
 

Variables

static constexpr size_t KIGFX::VERTEX_SIZE = sizeof(VERTEX)
 
static constexpr size_t KIGFX::VERTEX_STRIDE = VERTEX_SIZE / sizeof(GLfloat)
 
static constexpr size_t KIGFX::COORD_OFFSET = offsetof(VERTEX, x)
 
static constexpr size_t KIGFX::COORD_SIZE = sizeof(VERTEX::x) + sizeof(VERTEX::y) + sizeof(VERTEX::z)
 
static constexpr size_t KIGFX::COORD_STRIDE = COORD_SIZE / sizeof(GLfloat)
 
static constexpr size_t KIGFX::COLOR_OFFSET = offsetof(VERTEX, r)
 
static constexpr size_t KIGFX::COLOR_SIZE = sizeof(VERTEX::r) + sizeof(VERTEX::g) + sizeof(VERTEX::b) + sizeof(VERTEX::a)
 
static constexpr size_t KIGFX::COLOR_STRIDE = COLOR_SIZE / sizeof(GLubyte)
 
static constexpr size_t KIGFX::SHADER_OFFSET = offsetof(VERTEX, shader)
 
static constexpr size_t KIGFX::SHADER_SIZE = sizeof(VERTEX::shader)
 
static constexpr size_t KIGFX::SHADER_STRIDE = SHADER_SIZE / sizeof(GLfloat)
 
static constexpr size_t KIGFX::INDEX_SIZE = sizeof(GLuint)
 

Detailed Description

Common defines and consts used in vertex related classes.

Definition in file vertex_common.h.