~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/blender/render/intern/raytrace/rayobject_empty.cpp

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-07-23 08:54:18 UTC
  • mfrom: (14.2.16 sid)
  • mto: (14.2.19 sid)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: package-import@ubuntu.com-20120723085418-9foz30v6afaf5ffs
Tags: 2.63a-2
* debian/: Cycles support added (Closes: #658075)
  For now, this top feature has been enabled only
  on [any-amd64 any-i386] architectures because
  of OpenImageIO failing on all others
* debian/: scripts installation path changed
  from /usr/lib to /usr/share:
  + debian/patches/: patchset re-worked for path changing
  + debian/control: "Breaks" field added on yafaray-exporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * ***** BEGIN GPL LICENSE BLOCK *****
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU General Public License
 
6
 * as published by the Free Software Foundation; either version 2
 
7
 * of the License, or (at your option) any later version. 
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 * GNU General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program; if not, write to the Free Software Foundation,
 
16
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
17
 *
 
18
 * The Original Code is Copyright (C) 1990-1998 NeoGeo BV.
 
19
 * All rights reserved.
 
20
 *
 
21
 * Contributors: 2004/2005 Blender Foundation, full recode
 
22
 *
 
23
 * ***** END GPL LICENSE BLOCK *****
 
24
 */
 
25
 
 
26
/** \file blender/render/intern/raytrace/rayobject_empty.cpp
 
27
 *  \ingroup render
 
28
 */
 
29
 
 
30
 
 
31
#include "MEM_guardedalloc.h"
 
32
 
 
33
#include "rayobject.h"
 
34
 
 
35
#include "BLI_utildefines.h"
 
36
 
 
37
/*
 
38
 * Empty raytree
 
39
 */
 
40
 
 
41
static int RE_rayobject_empty_intersect(RayObject *UNUSED(o), Isect *UNUSED(is))
 
42
{
 
43
        return 0;
 
44
}
 
45
 
 
46
static void RE_rayobject_empty_free(RayObject *UNUSED(o))
 
47
{
 
48
}
 
49
 
 
50
static void RE_rayobject_empty_bb(RayObject *UNUSED(o), float *UNUSED(min), float *UNUSED(max))
 
51
{
 
52
        return;
 
53
}
 
54
 
 
55
static float RE_rayobject_empty_cost(RayObject *UNUSED(o))
 
56
{
 
57
        return 0.0;
 
58
}
 
59
 
 
60
static void RE_rayobject_empty_hint_bb(RayObject *UNUSED(o), RayHint *UNUSED(hint),
 
61
                                       float *UNUSED(min), float *UNUSED(max))
 
62
{}
 
63
 
 
64
static RayObjectAPI empty_api =
 
65
{
 
66
        RE_rayobject_empty_intersect,
 
67
        NULL, //static void RE_rayobject_instance_add(RayObject *o, RayObject *ob);
 
68
        NULL, //static void RE_rayobject_instance_done(RayObject *o);
 
69
        RE_rayobject_empty_free,
 
70
        RE_rayobject_empty_bb,
 
71
        RE_rayobject_empty_cost,
 
72
        RE_rayobject_empty_hint_bb
 
73
};
 
74
 
 
75
static RayObject empty_raytree = { &empty_api, {NULL, NULL} };
 
76
 
 
77
RayObject *RE_rayobject_empty_create()
 
78
{
 
79
        return RE_rayobject_unalignRayAPI( &empty_raytree );
 
80
}
 
81