2#ifndef _TINYPBRT_OBJECT_H_
3#define _TINYPBRT_OBJECT_H_
#define TPBRT_API
Definition export.h:18
tpbrt_error_t
Error type (used as result type where success = TPBRT_ERROR_NONE = 0).
Definition error.h:20
size_t tpbrt_size_t
Size type.
Definition fwd.h:93
tpbrt_error_t tpbrt_get_object_by_name(const tpbrt_objects_list_t *objects, tpbrt_string_t name, const tpbrt_object_t **object)
Returns pointer to object with given name.
tpbrt_error_t tpbrt_get_object_by_handle(const tpbrt_objects_list_t *objects, tpbrt_object_handle_t handle, const tpbrt_object_t **object)
Returns pointer to object to which handle is provided.
tpbrt_idx_t tpbrt_object_idx_t
Object index type.
Definition fwd.h:284
Keeps name indexes for faster lookups.
Definition common.h:42
Object handle.
Definition object.h:50
tpbrt_object_idx_t object_idx
Object index.
Definition object.h:52
PBRT object representation.
Definition object.h:24
tpbrt_string_t name
Object name.
Definition object.h:26
tpbrt_shapes_list_t children
Objects shapes.
Definition object.h:28
tpbrt_object_idx_t idx
Object index.
Definition object.h:30
List of objects.
Definition object.h:37
tpbrt_name_index_t names
Names indexes.
Definition object.h:43
tpbrt_object_t * objects
Objects in list.
Definition object.h:39
tpbrt_size_t count
Number of objects in list.
Definition object.h:41
List of shapes.
Definition shape.h:261
Simple string representation (not always terminated with '\0', the size determines the length of the ...
Definition common.h:20