~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * shadbuf_ext.h
3
 
 *
4
 
 *
5
2
 * ***** BEGIN GPL LICENSE BLOCK *****
6
3
 *
7
4
 * This program is free software; you can redistribute it and/or
28
25
 * ***** END GPL LICENSE BLOCK *****
29
26
 */
30
27
 
 
28
#ifndef __SHADBUF_H__
 
29
#define __SHADBUF_H__
 
30
 
31
31
/** \file blender/render/intern/include/shadbuf.h
32
32
 *  \ingroup render
33
33
 */
34
34
 
35
 
 
36
 
#ifndef __SHADBUF_H__
37
 
#define __SHADBUF_H__
38
 
 
39
35
#include "render_types.h"
40
36
 
41
37
struct ObjectRen;
83
79
 
84
80
/* buffer samples, allocated in camera buffer and pointed to in lampbuffer nodes */
85
81
typedef struct ISBSample {
86
 
        float zco[3];                   /* coordinate in lampview projection */
87
 
        short *shadfac;                 /* initialized zero = full lighted */
88
 
        int obi;                                /* object for face lookup */
89
 
        int facenr;                             /* index in faces list */       
 
82
        float zco[3];           /* coordinate in lampview projection */
 
83
        short *shadfac;         /* initialized zero = full lighted */
 
84
        int obi;                /* object for face lookup */
 
85
        int facenr;             /* index in faces list */
90
86
} ISBSample;
91
87
 
92
88
/* transparent version of buffer sample */
93
89
typedef struct ISBSampleA {
94
 
        float zco[3];                           /* coordinate in lampview projection */
95
 
        short *shadfac;                         /* NULL = full lighted */
96
 
        int obi;                                        /* object for face lookup */
97
 
        int facenr;                                     /* index in faces list */       
98
 
        struct ISBSampleA *next;        /* in end, we want the first items to align with ISBSample */
 
90
        float zco[3];               /* coordinate in lampview projection */
 
91
        short *shadfac;             /* NULL = full lighted */
 
92
        int obi;                    /* object for face lookup */
 
93
        int facenr;                 /* index in faces list */
 
94
        struct ISBSampleA *next;    /* in end, we want the first items to align with ISBSample */
99
95
} ISBSampleA;
100
96
 
101
97
/* used for transparent storage only */