跳转至

lib/graphic/resource/config.h

Graphics resource configuration and feature toggles. More...

Detailed Description

Graphics resource configuration and feature toggles.

See:

  • Animation framework
  • Graphics device abstraction

This configuration header controls which graphics resources and features are compiled and available at runtime. It provides conditional compilation flags for optional fonts and resources.

Configuration can be controlled in two ways:

  1. Define USE_NO_DEFAULT_SOURCES to disable all resources
  2. Define individual DISABLE* macros to selectively disable resources

Source code

#ifndef CCGraphic_Config_H
#define CCGraphic_Config_H

#ifdef _USE_NO_DEFAULT_SOURCES

#define ENABLE_ASCII_6x8_SOURCES 0

#define ENABLE_ASCII_8X16_SOURCES 0

#else

#define ENABLE_ASCII_6x8_SOURCES 1

#define ENABLE_ASCII_8x16_SOURCES 1

/* Selective resource disabling */

#ifdef DISABLE_ASCII_6X8_SOURCES
#undef ENABLE_ASCII_6x8_SOURCES
#define ENABLE_ASCII_6x8_SOURCES 0
#endif

#ifdef DISABLE_ASCII_8X16_SOURCES
#undef ENABLE_ASCII_8X16_SOURCES
#define ENABLE_ASCII_8X16_SOURCES 0
#endif

#endif // for the _USE_NO_DEFAULT_SOURCES

#endif // for the no-repeative include guard

 // end of Graphics_Resources group

Updated on 2026-02-03 at 13:21:55 +0000