KiCad PCB EDA Suite
Loading...
Searching...
No Matches
opengl_gal.cpp File Reference
#include <advanced_config.h>
#include <build_version.h>
#include <gal/opengl/opengl_gal.h>
#include <gal/opengl/utils.h>
#include <gal/definitions.h>
#include <gal/opengl/gl_context_mgr.h>
#include <geometry/shape_poly_set.h>
#include <math/vector2wx.h>
#include <bitmap_base.h>
#include <bezier_curves.h>
#include <math/util.h>
#include <trace_helpers.h>
#include <wx/frame.h>
#include <macros.h>
#include <geometry/geometry_utils.h>
#include <core/thread_pool.h>
#include <core/profile.h>
#include <gal/opengl/gl_utils.h>
#include <functional>
#include <limits>
#include <memory>
#include <list>
#include "gl_resources.h"
#include <glsl_kicad_frag.h>
#include <glsl_kicad_vert.h>

Go to the source code of this file.

Classes

class  KIGFX::GL_BITMAP_CACHE
 
struct  KIGFX::GL_BITMAP_CACHE::CACHED_BITMAP
 

Namespaces

namespace  KIGFX
 The Cairo implementation of the graphics abstraction layer.
 

Functions

static void InitTesselatorCallbacks (GLUtesselator *aTesselator)
 
static wxGLAttributes getGLAttribs ()
 
void CALLBACK VertexCallback (GLvoid *aVertexPtr, void *aData)
 
void CALLBACK CombineCallback (GLdouble coords[3], GLdouble *vertex_data[4], GLfloat weight[4], GLdouble **dataOut, void *aData)
 
void CALLBACK EdgeCallback (GLboolean aEdgeFlag)
 
void CALLBACK ErrorCallback (GLenum aErrorCode)
 
double round_to_half_pixel (double f, double r)
 

Function Documentation

◆ CombineCallback()

void CALLBACK CombineCallback ( GLdouble  coords[3],
GLdouble *  vertex_data[4],
GLfloat  weight[4],
GLdouble **  dataOut,
void *  aData 
)

Definition at line 2784 of file opengl_gal.cpp.

References KIGFX::OPENGL_GAL::TessParams::intersectPoints.

Referenced by InitTesselatorCallbacks().

◆ EdgeCallback()

void CALLBACK EdgeCallback ( GLboolean  aEdgeFlag)

Definition at line 2801 of file opengl_gal.cpp.

Referenced by InitTesselatorCallbacks().

◆ ErrorCallback()

void CALLBACK ErrorCallback ( GLenum  aErrorCode)

Definition at line 2807 of file opengl_gal.cpp.

Referenced by InitTesselatorCallbacks().

◆ getGLAttribs()

static wxGLAttributes getGLAttribs ( )
static

Definition at line 77 of file opengl_gal.cpp.

◆ InitTesselatorCallbacks()

static void InitTesselatorCallbacks ( GLUtesselator *  aTesselator)
static

◆ round_to_half_pixel()

double round_to_half_pixel ( double  f,
double  r 
)
inline

Definition at line 2830 of file opengl_gal.cpp.

Referenced by KIGFX::OPENGL_GAL::ComputeWorldScreenMatrix().

◆ VertexCallback()

void CALLBACK VertexCallback ( GLvoid *  aVertexPtr,
void *  aData 
)