ai_render.h
1 /*
2  * Arnold API header file
3  * Copyright (c) 1998-2009 Marcos Fajardo, (c) 2009-2013 Solid Angle SL
4  */
5 
11 #pragma once
12 #include "ai_api.h"
13 
21 #define AI_RENDER_MODE_CAMERA 0x00
22 #define AI_RENDER_MODE_FREE 0x01
23 /*\}*/
24 
28 #define AI_SUCCESS 0x00
29 #define AI_ABORT 0x01
30 #define AI_ERROR_WRONG_OUTPUT 0x02
31 #define AI_ERROR_NO_CAMERA 0x03
32 #define AI_ERROR_BAD_CAMERA 0x04
33 #define AI_ERROR_VALIDATION 0x05
34 #define AI_ERROR_RENDER_REGION 0x06
35 #define AI_ERROR_OUTPUT_EXISTS 0x07
36 #define AI_ERROR_OPENING_FILE 0x08
37 #define AI_INTERRUPT 0x09
38 #define AI_ERROR_UNRENDERABLE_SCENEGRAPH 0x0A
39 #define AI_ERROR_NO_OUTPUTS 0x0B
40 #define AI_ERROR -1
41 /*\}*/
42 
43 AI_API void AiBegin();
44 AI_API void AiEnd();
45 AI_API int AiRender(int mode = AI_RENDER_MODE_CAMERA);
46 AI_API void AiRenderAbort();
47 AI_API void AiRenderInterrupt();
48 AI_API bool AiRendering();
49 
50 /*\}*/

© 2009-2013 Solid Angle SL · all rights reserved · www.solidangle.com