Tachyon (current)  Current Main Branch
Macros | Functions
sgirgb.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "tachyon.h"
#include "util.h"
#include "imageio.h"
#include "sgirgb.h"

Go to the source code of this file.

Macros

#define TACHYON_INTERNAL   1
 

Functions

static void putbyte (FILE *outf, unsigned char val)
 
static void putshort (FILE *outf, unsigned short val)
 
static void putint (FILE *outf, unsigned int val)
 
int writergb (char *name, int xres, int yres, unsigned char *imgdata)
 

Macro Definition Documentation

◆ TACHYON_INTERNAL

#define TACHYON_INTERNAL   1

Definition at line 16 of file sgirgb.c.

Function Documentation

◆ putbyte()

static void putbyte ( FILE *  outf,
unsigned char  val 
)
static

Definition at line 22 of file sgirgb.c.

Referenced by writergb().

◆ putint()

static void putint ( FILE *  outf,
unsigned int  val 
)
static

Definition at line 35 of file sgirgb.c.

Referenced by writergb().

◆ putshort()

static void putshort ( FILE *  outf,
unsigned short  val 
)
static

Definition at line 28 of file sgirgb.c.

Referenced by writergb().

◆ writergb()

int writergb ( char *  name,
int  xres,
int  yres,
unsigned char *  imgdata 
)

Definition at line 44 of file sgirgb.c.

References IMAGENOERR, putbyte(), putint(), and putshort().

Referenced by writeimage().