2009-01-27 05:23:36 -08:00
|
|
|
// Copyright (C) 2002-2009 Nikolaus Gebhardt / Thomas Alten
|
2007-05-20 11:03:49 -07:00
|
|
|
// This file is part of the "Irrlicht Engine".
|
|
|
|
// For conditions of distribution and use, see copyright notice in irrlicht.h
|
|
|
|
|
|
|
|
#ifndef __S_VIDEO_2_SOFTWARE_COMPILE_CONFIG_H_INCLUDED__
|
|
|
|
#define __S_VIDEO_2_SOFTWARE_COMPILE_CONFIG_H_INCLUDED__
|
|
|
|
|
|
|
|
#include "IrrCompileConfig.h"
|
|
|
|
|
|
|
|
|
|
|
|
// Generic Render Flags for burning's video rasterizer
|
|
|
|
// defined now in irrlicht compile config
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef BURNINGVIDEO_RENDERER_BEAUTIFUL
|
|
|
|
#define SOFTWARE_DRIVER_2_PERSPECTIVE_CORRECT
|
|
|
|
#define SOFTWARE_DRIVER_2_SUBTEXEL
|
|
|
|
#define SOFTWARE_DRIVER_2_BILINEAR
|
|
|
|
#define SOFTWARE_DRIVER_2_LIGHTING
|
|
|
|
#define SOFTWARE_DRIVER_2_USE_VERTEX_COLOR
|
|
|
|
#define SOFTWARE_DRIVER_2_32BIT
|
|
|
|
#define SOFTWARE_DRIVER_2_MIPMAPPING
|
|
|
|
#define SOFTWARE_DRIVER_2_USE_WBUFFER
|
|
|
|
#define SOFTWARE_DRIVER_2_TEXTURE_TRANSFORM
|
2009-05-04 17:09:53 -07:00
|
|
|
#define SOFTWARE_DRIVER_2_TEXTURE_MAXSIZE 0
|
2007-05-20 11:03:49 -07:00
|
|
|
#endif
|
|
|
|
|
2009-05-04 17:09:53 -07:00
|
|
|
//! Set Flags for Windows Mobile
|
2008-01-02 02:28:12 -08:00
|
|
|
#ifdef BURNINGVIDEO_RENDERER_CE
|
|
|
|
#define SOFTWARE_DRIVER_2_PERSPECTIVE_CORRECT
|
|
|
|
#define SOFTWARE_DRIVER_2_SUBTEXEL
|
2009-05-04 17:09:53 -07:00
|
|
|
//#define SOFTWARE_DRIVER_2_BILINEAR
|
|
|
|
//#define SOFTWARE_DRIVER_2_LIGHTING
|
2008-01-02 02:28:12 -08:00
|
|
|
#define SOFTWARE_DRIVER_2_USE_VERTEX_COLOR
|
|
|
|
#define SOFTWARE_DRIVER_2_16BIT
|
|
|
|
#define SOFTWARE_DRIVER_2_MIPMAPPING
|
|
|
|
#define SOFTWARE_DRIVER_2_USE_WBUFFER
|
2009-05-04 17:09:53 -07:00
|
|
|
//#define SOFTWARE_DRIVER_2_TEXTURE_TRANSFORM
|
|
|
|
#define SOFTWARE_DRIVER_2_TEXTURE_MAXSIZE 128
|
2008-01-02 02:28:12 -08:00
|
|
|
#endif
|
|
|
|
|
2007-05-20 11:03:49 -07:00
|
|
|
#ifdef BURNINGVIDEO_RENDERER_FAST
|
|
|
|
#define SOFTWARE_DRIVER_2_PERSPECTIVE_CORRECT
|
|
|
|
#define SOFTWARE_DRIVER_2_SUBTEXEL
|
|
|
|
//#define SOFTWARE_DRIVER_2_BILINEAR
|
|
|
|
//#define SOFTWARE_DRIVER_2_LIGHTING
|
|
|
|
//#define SOFTWARE_DRIVER_2_USE_VERTEX_COLOR
|
|
|
|
#define SOFTWARE_DRIVER_2_32BIT
|
|
|
|
#define SOFTWARE_DRIVER_2_MIPMAPPING
|
|
|
|
#define SOFTWARE_DRIVER_2_USE_WBUFFER
|
2009-05-04 17:09:53 -07:00
|
|
|
#define SOFTWARE_DRIVER_2_TEXTURE_MAXSIZE 0
|
2007-05-20 11:03:49 -07:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef BURNINGVIDEO_RENDERER_ULTRA_FAST
|
|
|
|
#define BURNINGVIDEO_RENDERER_FAST
|
|
|
|
|
|
|
|
//#define SOFTWARE_DRIVER_2_PERSPECTIVE_CORRECT
|
|
|
|
#define SOFTWARE_DRIVER_2_SUBTEXEL
|
|
|
|
//#define SOFTWARE_DRIVER_2_BILINEAR
|
|
|
|
//#define SOFTWARE_DRIVER_2_LIGHTING
|
|
|
|
//#define SOFTWARE_DRIVER_2_USE_VERTEX_COLOR
|
|
|
|
//#define SOFTWARE_DRIVER_2_32BIT
|
|
|
|
#define SOFTWARE_DRIVER_2_MIPMAPPING
|
2008-01-13 21:15:04 -08:00
|
|
|
#define SOFTWARE_DRIVER_2_USE_WBUFFER
|
2009-05-04 17:09:53 -07:00
|
|
|
#define SOFTWARE_DRIVER_2_TEXTURE_MAXSIZE 0
|
2007-05-20 11:03:49 -07:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// Derivate flags
|
|
|
|
|
|
|
|
// texture format
|
|
|
|
#ifdef SOFTWARE_DRIVER_2_32BIT
|
2007-11-13 06:36:17 -08:00
|
|
|
#define BURNINGSHADER_COLOR_FORMAT ECF_A8R8G8B8
|
2007-05-20 11:03:49 -07:00
|
|
|
#else
|
2007-11-13 06:36:17 -08:00
|
|
|
#define BURNINGSHADER_COLOR_FORMAT ECF_A1R5G5B5
|
2007-05-20 11:03:49 -07:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// mip mapping
|
2009-05-04 17:09:53 -07:00
|
|
|
#if defined ( SOFTWARE_DRIVER_2_MIPMAPPING )
|
|
|
|
#if defined( BURNINGVIDEO_RENDERER_BEAUTIFUL )
|
2007-05-20 11:03:49 -07:00
|
|
|
#define SOFTWARE_DRIVER_2_MIPMAPPING_MAX 8
|
|
|
|
#define SOFTWARE_DRIVER_2_MIPMAPPING_LOD_BIAS -1
|
2009-05-04 17:09:53 -07:00
|
|
|
#elif defined ( BURNINGVIDEO_RENDERER_CE )
|
|
|
|
#define SOFTWARE_DRIVER_2_MIPMAPPING_MAX 4
|
2007-12-30 08:51:28 -08:00
|
|
|
#define SOFTWARE_DRIVER_2_MIPMAPPING_LOD_BIAS 0
|
2009-09-16 05:48:19 -07:00
|
|
|
#else
|
|
|
|
#define SOFTWARE_DRIVER_2_MIPMAPPING_MAX 8
|
|
|
|
#define SOFTWARE_DRIVER_2_MIPMAPPING_LOD_BIAS 0
|
2007-05-20 11:03:49 -07:00
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#define SOFTWARE_DRIVER_2_MIPMAPPING_MAX 1
|
|
|
|
#define SOFTWARE_DRIVER_2_MIPMAPPING_LOD_BIAS 0
|
|
|
|
#endif
|
|
|
|
|
2007-12-30 08:51:28 -08:00
|
|
|
#define SOFTWARE_DRIVER_2_MIPMAPPING_SCALE (8/SOFTWARE_DRIVER_2_MIPMAPPING_MAX)
|
2007-05-20 11:03:49 -07:00
|
|
|
|
|
|
|
#ifndef REALINLINE
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#define REALINLINE __forceinline
|
|
|
|
#else
|
|
|
|
#define REALINLINE inline
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|