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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Lukas Fittl
  • Date: 2006-09-20 01:57:27 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060920015727-gmoqlxwstx9wwqs3
Tags: 2.42a-1ubuntu1
* Merge from Debian unstable (Closes: Malone #55903). Remaining changes:
  - debian/genpot: Add python scripts from Lee June <blender@eyou.com> to
    generate a reasonable PO template from the sources. Since gettext is used
    in a highly nonstandard way, xgettext does not work for this job.
  - debian/rules: Call the scripts, generate po/blender.pot, and clean it up
    in the clean target.
  - Add a proper header to the generated PO template.
* debian/control: Build depend on libavformat-dev >= 3:0.cvs20060823-3.1,
  otherwise this package will FTBFS

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * pixelshading.h
3
 
 *
4
 
 * These functions determine what actual colour a pixel will have.
5
 
 *
6
 
 * $Id: pixelshading.h,v 1.9 2005/04/18 15:30:49 ton Exp $
7
 
 *
8
 
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
 
2
 * $Id: pixelshading.h,v 1.10 2006/01/28 18:33:16 hos Exp $
 
3
 *
 
4
 * ***** BEGIN GPL LICENSE BLOCK *****
9
5
 *
10
6
 * This program is free software; you can redistribute it and/or
11
7
 * modify it under the terms of the GNU General Public License
12
8
 * as published by the Free Software Foundation; either version 2
13
 
 * of the License, or (at your option) any later version. The Blender
14
 
 * Foundation also sells licenses for use in proprietary software under
15
 
 * the Blender License.  See http://www.blender.org/BL/ for information
16
 
 * about this.
 
9
 * of the License, or (at your option) any later version. 
17
10
 *
18
11
 * This program is distributed in the hope that it will be useful,
19
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27
20
 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
28
21
 * All rights reserved.
29
22
 *
30
 
 * The Original Code is: all of this file.
31
 
 *
32
 
 * Contributor(s): none yet.
33
 
 *
34
 
 * ***** END GPL/BL DUAL LICENSE BLOCK *****
 
23
 * Contributor(s): 2004-2006, Blender Foundation, full recode
 
24
 *
 
25
 * ***** END GPL LICENSE BLOCK *****
35
26
 */
36
27
 
 
28
/* pixelshading.h
 
29
*
 
30
* These functions determine what actual colour a pixel will have.
 
31
*/
 
32
 
 
33
 
37
34
#ifndef PIXELSHADING_H
38
35
#define PIXELSHADING_H
39
36
 
40
 
#include "render.h"
41
 
#include "vanillaRenderPipe_types.h"
42
 
 
43
37
/**
44
38
 * Render the pixel at (x,y) for object ap. Apply the jitter mask. 
45
39
 * Output is given in float collector[4]. The type vector:
51
45
 * mask is pixel coverage in bits
52
46
 * @return pointer to the object
53
47
 */
54
 
void *renderPixel(RE_COLBUFTYPE *collector, float x, float y, int *t, int mask);
55
 
 
56
 
 
57
 
void setSkyBlendingMode(enum RE_SkyAlphaBlendingType mode);
58
 
 
59
48
void shadeHaloFloat(HaloRen *har, 
60
49
                                        float *col, int zz, 
61
50
                                        float dist, float xn, 
62
51
                                        float yn, short flarec);
63
52
 
64
53
/**
65
 
 * Get the sky blending mode.
66
 
 */
67
 
enum RE_SkyAlphaBlendingType getSkyBlendingMode(void);
68
 
/**
69
54
 * Render the sky at pixel (x, y).
70
55
 */
71
 
void renderSkyPixelFloat(RE_COLBUFTYPE *collector, float x, float y);
72
 
 
73
 
/* used by shadeSkyPixel: */
74
 
void shadeSkyPixelFloat(float *colf, float *view, float *dxyview);
75
 
void renderSpotHaloPixel(float x, float y, float *target);
76
 
void shadeSkyPixel(RE_COLBUFTYPE *collector, float fx, float fy);
77
 
void fillBackgroundImage(RE_COLBUFTYPE *collector, float x, float y);
78
 
void fillBackgroundImageChar(char *col, float x, float y);
 
56
void renderSkyPixelFloat(float *collector, float x, float y, float *rco);
 
57
void shadeSkyPixel(float *collector, float fx, float fy, float *rco);
 
58
void shadeSkyPixelFloat(float *colf, float *rco, float *view, float *dxyview);
79
59
 
80
60
/* ------------------------------------------------------------------------- */
81
61