1 /* NAME: 2 GNRenderer.h 3 4 DESCRIPTION: 5 Header file for GNRenderer.c. 6 7 COPYRIGHT: 8 Copyright (c) 1999-2004, Quesa Developers. All rights reserved. 9 10 For the current release of Quesa, please see: 11 12 <http://www.quesa.org/> 13 14 Redistribution and use in source and binary forms, with or without 15 modification, are permitted provided that the following conditions 16 are met: 17 18 o Redistributions of source code must retain the above copyright 19 notice, this list of conditions and the following disclaimer. 20 21 o Redistributions in binary form must reproduce the above 22 copyright notice, this list of conditions and the following 23 disclaimer in the documentation and/or other materials provided 24 with the distribution. 25 26 o Neither the name of Quesa nor the names of its contributors 27 may be used to endorse or promote products derived from this 28 software without specific prior written permission. 29 30 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 31 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 32 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 33 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 34 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 35 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 36 TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 37 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 38 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 39 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 40 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 41 ___________________________________________________________________________ 42 */ 43 #ifndef GNRENDERER_HDR 44 #define GNRENDERER_HDR 45 //============================================================================= 46 // Include files 47 //----------------------------------------------------------------------------- 48 // Include files go here 49 50 51 52 53 54 //============================================================================= 55 // C++ preamble 56 //----------------------------------------------------------------------------- 57 #ifdef __cplusplus 58 extern "C" { 59 #endif 60 61 62 63 64 65 //============================================================================= 66 // Function prototypes 67 //----------------------------------------------------------------------------- 68 TQ3Status GNRenderer_StartFrame( 69 TQ3ViewObject theView, 70 void *instanceData, 71 TQ3DrawContextObject theDrawContext); 72 73 TQ3Status GNRenderer_EndFrame( 74 TQ3ViewObject theView, 75 void *instanceData, 76 TQ3DrawContextObject theDrawContext); 77 78 TQ3Status GNRenderer_StartPass( 79 TQ3ViewObject theView, 80 void *instanceData, 81 TQ3CameraObject theCamera, 82 TQ3GroupObject theLights); 83 84 TQ3ViewStatus GNRenderer_EndPass( 85 TQ3ViewObject theView, 86 void *instanceData); 87 88 void GNRenderer_Cancel( 89 TQ3ViewObject theView, 90 void *instanceData); 91 92 93 94 95 96 //============================================================================= 97 // C++ postamble 98 //----------------------------------------------------------------------------- 99 #ifdef __cplusplus 100 } 101 #endif 102 103 #endif 104 105