28 lines
523 B
C
28 lines
523 B
C
/*
|
|
Configuration file.
|
|
*/
|
|
|
|
/* TODO: Move to root or Shared/ folder? */
|
|
|
|
#ifndef COM_CFG_H
|
|
#define COM_CFG_H
|
|
|
|
/* Render resolution. */
|
|
#define COM_CFG_WIDTH 640
|
|
#define COM_CFG_HEIGHT 480
|
|
|
|
#if COM_DEF_TARGET == COM_DEF_TARGET_WASM
|
|
#define COM_CFG_COLORS 4
|
|
#else
|
|
#define COM_CFG_COLORS 3
|
|
#endif
|
|
|
|
#define COM_CFG_FBSIZE (COM_CFG_WIDTH * COM_CFG_HEIGHT * COM_CFG_COLORS)
|
|
|
|
#define COM_CFG_SNDFRMRATE 44100
|
|
|
|
/* TODO: Generate file with precompiled note frequencies. */
|
|
#define COM_CFG_A4FIX (440 << COM_FIX_FRACBITS)
|
|
|
|
#endif
|