~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/render/intern/include/texture.h

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * texture_ext.h
3
3
 *
4
 
 * $Id: texture.h,v 1.6 2003/12/21 21:52:48 ton Exp $
 
4
 * $Id: texture.h,v 1.8 2005/04/25 20:43:28 ton Exp $
5
5
 *
6
6
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
7
7
 *
35
35
#ifndef TEXTURE_EXT_H
36
36
#define TEXTURE_EXT_H
37
37
 
 
38
#define BRICONT         texres->tin= (texres->tin-0.5)*tex->contrast+tex->bright-0.5; \
 
39
if(texres->tin<0.0) texres->tin= 0.0; else if(texres->tin>1.0) texres->tin= 1.0;
 
40
 
 
41
#define BRICONTRGB      texres->tr= tex->rfac*((texres->tr-0.5)*tex->contrast+tex->bright-0.5); \
 
42
if(texres->tr<0.0) texres->tr= 0.0; \
 
43
texres->tg= tex->gfac*((texres->tg-0.5)*tex->contrast+tex->bright-0.5); \
 
44
if(texres->tg<0.0) texres->tg= 0.0; \
 
45
texres->tb= tex->bfac*((texres->tb-0.5)*tex->contrast+tex->bright-0.5); \
 
46
if(texres->tb<0.0) texres->tb= 0.0; 
 
47
 
 
48
 
38
49
struct HaloRen;
39
50
struct ShadeInput;
 
51
struct TexResult;
 
52
struct Tex;
 
53
struct Image;
 
54
 
 
55
/* texture.h */
40
56
 
41
57
void do_halo_tex(struct HaloRen *har, float xn, float yn, float *colf);
 
58
void do_sky_tex(float *lo, float *dxyview, float *hor, float *zen, float *blend);
42
59
void render_realtime_texture(struct ShadeInput *shi);           
43
60
 
 
61
/* imagetexture.h */
 
62
 
 
63
int imagewraposa(struct Tex *tex, struct Image *ima, float *texvec, float *dxt, float *dyt, struct TexResult *texres);
 
64
int imagewrap(struct Tex *tex, struct Image *ima, float *texvec, struct TexResult *texres);
44
65
 
45
66
#endif /* TEXTURE_EXT_H */
46
67