Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

ScreenDimensions.h

Go to the documentation of this file.
00001 /* ScoreKeeperMAX2 - MAX2-style scorekeeping. */ 00002 00003 #ifndef SCREEN_DIMENSIONS_H 00004 #define SCREEN_DIMENSIONS_H 00005 00006 #include "ThemeManager.h" 00007 #include "ThemeMetric.h" 00008 00009 #define SCREEN_WIDTH ScreenWidth() 00010 #define SCREEN_HEIGHT ScreenHeight() 00011 float ScreenWidth(); 00012 float ScreenHeight(); 00013 00014 extern ThemeMetric<float> THEME_SCREEN_WIDTH; 00015 extern ThemeMetric<float> THEME_SCREEN_HEIGHT; 00016 00017 #define SCREEN_LEFT (0) 00018 #define SCREEN_RIGHT (SCREEN_WIDTH) 00019 #define SCREEN_TOP (0) 00020 #define SCREEN_BOTTOM (SCREEN_HEIGHT) 00021 00022 #define SCREEN_CENTER_X (SCREEN_LEFT + (SCREEN_RIGHT - SCREEN_LEFT)/2.0f) 00023 #define SCREEN_CENTER_Y (SCREEN_TOP + (SCREEN_BOTTOM - SCREEN_TOP)/2.0f) 00024 00025 #define FullScreenRectF RectF(SCREEN_LEFT,SCREEN_TOP,SCREEN_RIGHT,SCREEN_BOTTOM) 00026 00027 #define SCREEN_NEAR (-1000) 00028 #define SCREEN_FAR (1000) 00029 00030 #define ARROW_SIZE (64) 00031 00032 #endif 00033 00034 /* 00035 * (c) 2001-2002 Chris Danford 00036 * All rights reserved. 00037 * 00038 * Permission is hereby granted, free of charge, to any person obtaining a 00039 * copy of this software and associated documentation files (the 00040 * "Software"), to deal in the Software without restriction, including 00041 * without limitation the rights to use, copy, modify, merge, publish, 00042 * distribute, and/or sell copies of the Software, and to permit persons to 00043 * whom the Software is furnished to do so, provided that the above 00044 * copyright notice(s) and this permission notice appear in all copies of 00045 * the Software and that both the above copyright notice(s) and this 00046 * permission notice appear in supporting documentation. 00047 * 00048 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00049 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00050 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00051 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00052 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00053 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00054 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00055 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00056 * PERFORMANCE OF THIS SOFTWARE. 00057 */

Generated on Thu Jan 27 20:57:31 2005 for StepMania by doxygen 1.3.7