Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
glcomptexture.c File Reference
#include <assert.h>
#include <glcomp/glcomptexture.h>
#include <glcomp/glpangofont.h>
#include <stddef.h>
#include <stdbool.h>
#include <util/alloc.h>
#include <util/streq.h>
Include dependency graph for glcomptexture.c:

Go to the source code of this file.

Functions

static glCompTexglCompSetAddNewTexture (glCompSet *s, int width, int height, const unsigned char *data, bool is2D)
 
glCompTexglCompSetAddNewTexImage (glCompSet *s, int width, int height, const unsigned char *data, bool is2D)
 
glCompTexglCompSetAddNewTexLabel (glCompSet *s, char *def, int fs, char *text, bool is2D)
 
void glCompDeleteTexture (glCompTex *t)
 

Function Documentation

◆ glCompDeleteTexture()

void glCompDeleteTexture ( glCompTex t)

Definition at line 135 of file glcomptexture.c.

References glCompTex::data, glCompTex::def, free(), glCompTex::text, and glCompTex::userCount.

Referenced by glCompImageDelete(), glCompImageLoad(), and glDeleteFont().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ glCompSetAddNewTexImage()

glCompTex * glCompSetAddNewTexImage ( glCompSet s,
int  width,
int  height,
const unsigned char *  data,
bool  is2D 
)

Definition at line 81 of file glcomptexture.c.

References glCompSetAddNewTexture(), glTexImage, NULL, and glCompTex::type.

Referenced by glCompImageLoad().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ glCompSetAddNewTexLabel()

glCompTex * glCompSetAddNewTexLabel ( glCompSet s,
char *  def,
int  fs,
char *  text,
bool  is2D 
)

Definition at line 95 of file glcomptexture.c.

References glCompTex::def, free(), glCompCreatePangoTexture(), glCompSetAddNewTexture(), glTexLabel, gv_strdup(), NULL, streq(), glCompTex::text, and glCompTex::type.

Referenced by glNewFont(), and glNewFontFromParent().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ glCompSetAddNewTexture()

static glCompTex * glCompSetAddNewTexture ( glCompSet s,
int  width,
int  height,
const unsigned char *  data,
bool  is2D 
)
static

Definition at line 19 of file glcomptexture.c.

References glCompTex::data, free(), gv_alloc(), gv_calloc(), gv_recalloc(), glCompTex::height, glCompTex::id, NULL, offset, glCompTex::userCount, and glCompTex::width.

Referenced by glCompSetAddNewTexImage(), and glCompSetAddNewTexLabel().

Here is the call graph for this function:
Here is the caller graph for this function: