ai_deprecated.h
Go to the documentation of this file.
1// Copyright 2021 Autodesk, Inc. All rights reserved.
2//
3// Use of this software is subject to the terms of the Autodesk license
4// agreement provided at the time of installation or download, or which
5// otherwise accompanies this software in either electronic or hard copy form.
6
16#pragma once
17
18struct AtCameraInput;
19struct AtCameraOutput;
20struct AtNode;
21
22AI_API void AiCameraCreateRayDeprecated(const AtNode* node, const AtCameraInput& input,
23 AtCameraOutput& output, uint16_t tid);
24
25#define AI_BUCKET_CB_FRAME_BEGIN 0x00
26#define AI_BUCKET_CB_FRAME_END 0x01
27#define AI_BUCKET_CB_BUCKET_BEGIN 0x02
28#define AI_BUCKET_CB_BUCKET_END 0x03
30struct AtBucketCoords;
31
32/*
33 * This callback allows the user to select the next bucket to be rendered. To make things easier, the bucket
34 * scheduler makes use of the bucket scanning mode to precompute a list of buckets (as usual) and then passes
35 * this list to the callback. The user can chose between reusing that list as-is, creating a permutation, or
36 * just ignoring it.
37 *
38 * Sequence of callback calls for normal process is:
39 *
40 * - mode == AI_BUCKET_CB_FRAME_BEGIN: In this call we can read the whole bucket list and store it or discard it.
41 * - mode == AI_BUCKET_CB_BUCKET_BEGIN: The callback has to set the coords for the given bucket.
42 * - mode == AI_BUCKET_CB_BUCKET_END: Notifies that the given bucket has finished rendering.
43 * - mode == AI_BUCKET_CB_FRAME_END: Notifies that the whole frame has finished rendering.
44 */
45typedef void (*AtBucketCallback)(int mode, int index, int nbuckets, const AtBucketCoords* bucket_list, AtBucketCoords* coords);
46
47AI_API void AiRenderSetCallback(AtBucketCallback cb);
48
49AI_DEPRECATED typedef AtVector AtPoint; // eventually we will remove AtPoint.
50AI_DEPRECATED typedef AtVector2 AtPoint2; // eventually we will remove AtPoint2.
51AI_DEPRECATED typedef AtRGB AtColor; // eventually we will remove AtColor.
Camera ray creation inputs.
Definition: ai_cameras.h:24
Camera ray creation outputs.
Definition: ai_cameras.h:41
This represents a node in Arnold.
RGB color.
Definition: ai_color.h:32
2D point
Definition: ai_vector.h:255
3D point (single precision)
Definition: ai_vector.h:30

© 2022 Autodesk, Inc. · All rights reserved · www.arnoldrenderer.com