townengine/include/twn_config.h

36 lines
972 B
C
Raw Normal View History

#ifndef TWN_CONFIG_H
#define TWN_CONFIG_H
2024-08-23 02:41:52 +00:00
2024-07-08 00:44:20 +00:00
/*
* this file is for configuration values which are to be set at
* compile time. generally speaking, it's for things that would be unwise to
* change mid-development without considering the work it might take to
* adapt the game logic.
*
* if you're looking for distribution-related definitions like
* APP_NAME, you should know that they are set from CMake.
*/
#define TICKS_PER_SECOND 60
#define FIXED_DELTA_TIME (1.0 / TICKS_PER_SECOND)
#define RENDER_BASE_WIDTH 640
#define RENDER_BASE_HEIGHT 360
#define RENDER_BASE_RATIO ((float)RENDER_BASE_WIDTH / (float)RENDER_BASE_HEIGHT)
2024-07-08 00:44:20 +00:00
#define TEXTURE_ATLAS_SIZE 2048
#define TEXTURE_ATLAS_BIT_DEPTH 32
#define TEXTURE_ATLAS_FORMAT SDL_PIXELFORMAT_RGBA32
#define NUM_KEYBIND_SLOTS 8
2024-07-08 06:46:12 +00:00
#define AUDIO_FREQUENCY 48000
#define AUDIO_N_CHANNELS 2
2024-08-23 02:41:52 +00:00
#define TEXT_FONT_TEXTURE_SIZE 1024
#define TEXT_FONT_OVERSAMPLING 4
#define TEXT_FONT_FILTERING TEXTURE_FILTER_LINEAR
2024-07-08 00:44:20 +00:00
#endif