Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Functions
ftsystem.c File Reference
#include <ft2build.h>

Go to the source code of this file.

Macros

#define FT_COMPONENT   trace_io
 
#define STREAM_FILE(stream)   ( (FT_FILE*)stream->descriptor.pointer )
 

Functions

 ft_alloc (FT_Memory memory, long size)
 
 ft_realloc (FT_Memory memory, long cur_size, long new_size, void *block)
 
 ft_free (FT_Memory memory, void *block)
 
 ft_ansi_stream_close (FT_Stream stream)
 
 ft_ansi_stream_io (FT_Stream stream, unsigned long offset, unsigned char *buffer, unsigned long count)
 
 FT_Stream_Open (FT_Stream stream, const char *filepathname)
 
 FT_New_Memory (void)
 
 FT_Done_Memory (FT_Memory memory)
 

Macro Definition Documentation

◆ FT_COMPONENT

#define FT_COMPONENT   trace_io

Definition at line 149 of file ftsystem.c.

◆ STREAM_FILE

#define STREAM_FILE (   stream)    ( (FT_FILE*)stream->descriptor.pointer )

Definition at line 153 of file ftsystem.c.

Referenced by ft_ansi_stream_close(), and ft_ansi_stream_io().

Function Documentation

◆ ft_alloc()

ft_alloc ( FT_Memory  memory,
long  size 
)

Definition at line 69 of file ftsystem.c.

References FT_CALLBACK_DEF, ft_smalloc, and FT_UNUSED.

◆ ft_ansi_stream_close()

ft_ansi_stream_close ( FT_Stream  stream)

Definition at line 168 of file ftsystem.c.

References FT_CALLBACK_DEF, ft_fclose, NULL, and STREAM_FILE.

Referenced by FT_Stream_Open().

◆ ft_ansi_stream_io()

ft_ansi_stream_io ( FT_Stream  stream,
unsigned long  offset,
unsigned char *  buffer,
unsigned long  count 
)

Definition at line 201 of file ftsystem.c.

References FT_BASE_DEF, FT_FILE, ft_fread, ft_fseek, SEEK_SET, and STREAM_FILE.

Referenced by FT_Stream_Open().

◆ FT_Done_Memory()

FT_Done_Memory ( FT_Memory  memory)

Definition at line 311 of file ftsystem.c.

References ft_sfree.

◆ ft_free()

ft_free ( FT_Memory  memory,
void block 
)

Definition at line 125 of file ftsystem.c.

References ft_sfree, and FT_UNUSED.

◆ FT_New_Memory()

FT_New_Memory ( void  )

Definition at line 287 of file ftsystem.c.

References ft_alloc(), FT_BASE_DEF, ft_free(), ft_realloc(), ft_smalloc, and NULL.

◆ ft_realloc()

ft_realloc ( FT_Memory  memory,
long  cur_size,
long  new_size,
void block 
)

Definition at line 99 of file ftsystem.c.

References FT_CALLBACK_DEF, ft_srealloc, and FT_UNUSED.

◆ FT_Stream_Open()

FT_Stream_Open ( FT_Stream  stream,
const char *  filepathname 
)