2
* ***** BEGIN GPL LICENSE BLOCK *****
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.
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.
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.
18
* The Original Code is Copyright (C) 1990-1998 NeoGeo BV.
19
* All rights reserved.
21
* Contributors: 2004/2005 Blender Foundation, full recode
23
* ***** END GPL LICENSE BLOCK *****
26
/** \file blender/render/intern/raytrace/rayobject_empty.cpp
31
#include "MEM_guardedalloc.h"
33
#include "rayobject.h"
35
#include "BLI_utildefines.h"
41
static int RE_rayobject_empty_intersect(RayObject *UNUSED(o), Isect *UNUSED(is))
46
static void RE_rayobject_empty_free(RayObject *UNUSED(o))
50
static void RE_rayobject_empty_bb(RayObject *UNUSED(o), float *UNUSED(min), float *UNUSED(max))
55
static float RE_rayobject_empty_cost(RayObject *UNUSED(o))
60
static void RE_rayobject_empty_hint_bb(RayObject *UNUSED(o), RayHint *UNUSED(hint),
61
float *UNUSED(min), float *UNUSED(max))
64
static RayObjectAPI empty_api =
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
75
static RayObject empty_raytree = { &empty_api, {NULL, NULL} };
77
RayObject *RE_rayobject_empty_create()
79
return RE_rayobject_unalignRayAPI( &empty_raytree );