Tachyon (current)  Current Main Branch
texture.h
Go to the documentation of this file.
1 /*
2  * texture.h - This file contains prototypes for the texture
3  * mapping part of the shader code.
4  *
5  * (C) Copyright 1994-2022 John E. Stone
6  * SPDX-License-Identifier: BSD-3-Clause
7  *
8  * $Id: texture.h,v 1.17 2022/03/13 23:30:01 johns Exp $
9  *
10  */
11 
12 void InitTextures(void);
13 
14 /* background texturing routines */
15 color solid_background_texture(ray *ry);
16 color sky_sphere_background_texture(ray *ry);
17 color sky_plane_background_texture(ray *ry);
18 
19 /* object texturing routines */
20 color constant_texture(const vector *, const texture *, const ray *);
21 color image_cyl_texture(const vector *, const texture *, const ray *);
22 color image_sphere_texture(const vector *, const texture *, const ray *);
23 color image_plane_texture(const vector *, const texture *, const ray *);
24 color image_volume_texture(const vector *, const texture *, const ray *);
25 color checker_texture(const vector *, const texture *, const ray *);
26 color cyl_checker_texture(const vector *, const texture *, const ray *);
27 color grit_texture(const vector *, const texture *, const ray *);
28 color wood_texture(const vector *, const texture *, const ray *);
29 color marble_texture(const vector *, const texture *, const ray *);
30 color gnoise_texture(const vector *, const texture *, const ray *);
31 int Noise(flt, flt, flt);
32 void InitTextures(void);
33 void FreeTextures(void);
34 
35 texture * new_texture(void);
36 texture * new_standard_texture(void);
37 texture * new_vcstri_texture(void);
38 void free_standard_texture(void * voidtex);
39 
texture * new_vcstri_texture(void)
Definition: texture.c:52
texture * new_texture(void)
Definition: texture.c:38
color image_sphere_texture(const vector *, const texture *, const ray *)
Definition: texture.c:187
color cyl_checker_texture(const vector *, const texture *, const ray *)
Definition: texture.c:337
color grit_texture(const vector *, const texture *, const ray *)
Definition: texture.c:291
color sky_plane_background_texture(ray *ry)
Definition: texture.c:116
color image_plane_texture(const vector *, const texture *, const ray *)
Definition: texture.c:219
void InitTextures(void)
Definition: texture.c:535
void free_standard_texture(void *voidtex)
Definition: texture.c:59
double flt
generic floating point number, using double
Definition: tachyon.h:47
color image_cyl_texture(const vector *, const texture *, const ray *)
Definition: texture.c:155
color solid_background_texture(ray *ry)
Definition: texture.c:77
texture * new_standard_texture(void)
Definition: texture.c:45
color image_volume_texture(const vector *, const texture *, const ray *)
Definition: texture.c:252
void FreeTextures(void)
Definition: texture.c:540
color sky_sphere_background_texture(ray *ry)
Definition: texture.c:83
color gnoise_texture(const vector *, const texture *, const ray *)
Definition: texture.c:516
color checker_texture(const vector *, const texture *, const ray *)
Definition: texture.c:307
color marble_texture(const vector *, const texture *, const ray *)
Definition: texture.c:481
int Noise(flt, flt, flt)
Definition: texture.c:432
color wood_texture(const vector *, const texture *, const ray *)
Definition: texture.c:370
color constant_texture(const vector *, const texture *, const ray *)
Definition: texture.c:149