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 | Variables
ftsystem.c File Reference
#include <proto/exec.h>
#include <dos/stdio.h>
#include <proto/dos.h>
#include <ft2build.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Macros

#define __NOLIBBASE__
 
#define __NOGLOBALIFACE__
 
#define __USE_INLINE__
 
#define IOBUF_SIZE   512
 
#define FT_COMPONENT   trace_io
 
#define STREAM_FILE(stream)   ( (struct SysFile *)stream->descriptor.pointer )
 

Functions

APTR Alloc_VecPooled (APTR poolHeader, ULONG memSize)
 
void Free_VecPooled (APTR poolHeader, APTR memory)
 
 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_amiga_stream_close (FT_Stream stream)
 
 ft_amiga_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)
 

Variables

struct Library * SysBase
 
struct Library * DOSBase
 

Macro Definition Documentation

◆ __NOGLOBALIFACE__

#define __NOGLOBALIFACE__

Definition at line 45 of file ftsystem.c.

◆ __NOLIBBASE__

#define __NOLIBBASE__

Definition at line 44 of file ftsystem.c.

◆ __USE_INLINE__

#define __USE_INLINE__

Definition at line 46 of file ftsystem.c.

◆ FT_COMPONENT

#define FT_COMPONENT   trace_io

Definition at line 238 of file ftsystem.c.

◆ IOBUF_SIZE

#define IOBUF_SIZE   512

Definition at line 58 of file ftsystem.c.

Referenced by ft_amiga_stream_io().

◆ STREAM_FILE

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

Definition at line 242 of file ftsystem.c.

Referenced by ft_amiga_stream_close(), and ft_amiga_stream_io().

Function Documentation

◆ Alloc_VecPooled()

APTR Alloc_VecPooled ( APTR  poolHeader,
ULONG  memSize 
)

Definition at line 74 of file ftsystem.c.

References NULL.

Referenced by ft_alloc(), and ft_realloc().

◆ Free_VecPooled()

void Free_VecPooled ( APTR  poolHeader,
APTR  memory 
)

Definition at line 88 of file ftsystem.c.

References FT_CALLBACK_DEF.

Referenced by ft_free(), and ft_realloc().

◆ ft_alloc()

ft_alloc ( FT_Memory  memory,
long  size 
)

Definition at line 141 of file ftsystem.c.

References Alloc_VecPooled(), and FT_CALLBACK_DEF.

Referenced by FT_New_Memory(), and FT_Stream_Open().

◆ ft_amiga_stream_close()

ft_amiga_stream_close ( FT_Stream  stream)

Definition at line 257 of file ftsystem.c.

References FT_CALLBACK_DEF, NULL, and STREAM_FILE.

Referenced by FT_Stream_Open().

◆ ft_amiga_stream_io()

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

Definition at line 292 of file ftsystem.c.

References FT_BASE_DEF, IOBUF_SIZE, and STREAM_FILE.

Referenced by FT_Stream_Open().

◆ FT_Done_Memory()

FT_Done_Memory ( FT_Memory  memory)

Definition at line 515 of file ftsystem.c.

Referenced by FT_Done_FreeType(), and FT_Init_FreeType().

◆ ft_free()

ft_free ( FT_Memory  memory,
void block 
)

Definition at line 213 of file ftsystem.c.

References Free_VecPooled().

Referenced by ft_close_stream_by_free(), FT_New_Memory(), and FT_Stream_Open().

◆ FT_New_Memory()

FT_New_Memory ( void  )

Definition at line 475 of file ftsystem.c.

Referenced by FT_Init_FreeType().

◆ ft_realloc()

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

Definition at line 173 of file ftsystem.c.

References Alloc_VecPooled(), Free_VecPooled(), FT_CALLBACK_DEF, and NULL.

Referenced by FT_New_Memory().

◆ FT_Stream_Open()

FT_Stream_Open ( FT_Stream  stream,
const char *  filepathname 
)

Definition at line 381 of file ftsystem.c.

Referenced by FT_Stream_New(), and main().

Variable Documentation

◆ DOSBase

struct Library* DOSBase

◆ SysBase

struct Library* SysBase