00001 /*--------------------------------------------------------------------------------- 00002 00003 BoxTest.h -- Code for performing hardware box test against viewing frustrum 00004 00005 Copyright (C) 2005 00006 Michael Noland (joat) 00007 Jason Rogers (dovoto) 00008 Dave Murphy (WinterMute) 00009 Mike Parks (BigRedPimp) 00010 This software is provided 'as-is', without any express or implied 00011 warranty. In no event will the authors be held liable for any 00012 damages arising from the use of this software. 00013 Permission is granted to anyone to use this software for any 00014 purpose, including commercial applications, and to alter it and 00015 redistribute it freely, subject to the following restrictions: 00016 00017 1. The origin of this software must not be misrepresented; you 00018 must not claim that you wrote the original software. If you use 00019 this software in a product, an acknowledgment in the product 00020 documentation would be appreciated but is not required. 00021 2. Altered source versions must be plainly marked as such, and 00022 must not be misrepresented as being the original software. 00023 3. This notice may not be removed or altered from any source 00024 distribution. 00025 00026 00027 ---------------------------------------------------------------------------------*/ 00028 #ifndef BOX_TEST_INCLUDE 00029 #define BOX_TEST_INCLUDE 00030 00031 #include "nds/arm9/video.h" 00032 #include "nds/arm9/videoGL.h" 00033 00039 #ifdef __cplusplus 00040 extern "C" { 00041 #endif 00042 00053 int BoxTest(v16 x, v16 y, v16 z, v16 width, v16 height, v16 depth); 00054 00066 int BoxTestf(float x, float y, float z, float width, float height, float depth); 00067 00080 void BoxTest_Asynch(v16 x, v16 y, v16 z, v16 height, v16 width, v16 depth); 00081 00094 void BoxTestf_Asynch(float x, float y, float z, float width, float height, float depth); 00095 00101 int BoxTestResult(void); 00102 00103 #ifdef __cplusplus 00104 } 00105 #endif 00106 #endif