KiCad PCB EDA Suite
Loading...
Searching...
No Matches
vertex_common.h File Reference

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

#include <gal/opengl/kiglew.h>
#include <math/vector2d.h>
#include <cstddef>

Go to the source code of this file.

Classes

struct  KIGFX::VERTEX
 

Namespaces

namespace  KIGFX
 The Cairo implementation of the graphics abstraction layer.
 

Enumerations

enum  KIGFX::SHADER_MODE {
  KIGFX::SHADER_NONE = 0 , KIGFX::SHADER_FILLED_CIRCLE = 2 , KIGFX::SHADER_STROKED_CIRCLE = 3 , KIGFX::SHADER_FONT = 4 ,
  KIGFX::SHADER_LINE_A = 5 , KIGFX::SHADER_LINE_B = 6 , KIGFX::SHADER_LINE_C = 7 , KIGFX::SHADER_LINE_D = 8 ,
  KIGFX::SHADER_LINE_E = 9 , KIGFX::SHADER_LINE_F = 10
}
 < Possible types of shaders (keep consistent with the actual shader source in kicad_vert.glsl and kicad_frag.glsl). 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.