Tachyon (current)  Current Main Branch
Functions
tachyon_dep.h File Reference

Old now-deprecated Tachyon APIs that have been replaced by newer APIs and/or improved functionality. More...

Go to the source code of this file.

Functions

void rt_camera_setup (SceneHandle, flt zoom, flt aspect, int alias, int maxdepth, apivector ctr, apivector viewdir, apivector updir)
 Define a camera for a perspective projection, given the specified zoom factor, aspect ratio, antialiasing sample count, maximum ray recursion depth, and camera center, view direction, and up direction, in a left-handed coordinate system. More...
 
void rt_define_image (const char *name, int xsize, int ysize, int zsize, unsigned char *rgb24data)
 Defines a named 1-D, 2-D, or 3-D texture image with a 24-bit RGB image buffer, without any file references. More...
 
void rt_background_sky_sphere (SceneHandle, apivector up, flt topval, flt botval, apicolor topcolor, apicolor botcolor)
 Set parameters for sky sphere background texturing. More...
 

Detailed Description

Old now-deprecated Tachyon APIs that have been replaced by newer APIs and/or improved functionality.

Definition in file tachyon_dep.h.

Function Documentation

◆ rt_background_sky_sphere()

void rt_background_sky_sphere ( SceneHandle  ,
apivector  up,
flt  topval,
flt  botval,
apicolor  topcolor,
apicolor  botcolor 
)

Set parameters for sky sphere background texturing.

Definition at line 539 of file api.c.

References rt_background_gradient().

Referenced by rt_newscene().

◆ rt_camera_setup()

void rt_camera_setup ( SceneHandle  ,
flt  zoom,
flt  aspect,
int  alias,
int  maxdepth,
apivector  ctr,
apivector  viewdir,
apivector  updir 
)

Define a camera for a perspective projection, given the specified zoom factor, aspect ratio, antialiasing sample count, maximum ray recursion depth, and camera center, view direction, and up direction, in a left-handed coordinate system.

Definition at line 229 of file api.c.

References cameradefault(), rt_aa_maxsamples(), rt_aspectratio(), rt_camera_eye_separation(), rt_camera_position(), rt_camera_raydepth(), and rt_camera_zoom().

Referenced by GetCamera(), GetScenedefs(), main(), NFFGetScenedefs(), and rt_newscene().

◆ rt_define_image()

void rt_define_image ( const char *  name,
int  xsize,
int  ysize,
int  zsize,
unsigned char *  rgb24data 
)

Defines a named 1-D, 2-D, or 3-D texture image with a 24-bit RGB image buffer, without any file references.

This allows an application to send Tachyon images for texture mapping without having to touch the filesystem.

Definition at line 956 of file api.c.

References AllocateImageRGB24().