DSC Engine
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
DSC::GenericScene256 Class Reference

general-purpose scene with 256KB BG-Main VRAM More...

#include <generic_scene_256.hpp>

Inheritance diagram for DSC::GenericScene256:
DSC::Scene

Public Member Functions

virtual void init () override
 Contains Scene initialization routines (setting variables, loading VRAM etc.) More...
 
 __attribute__ ((noinline)) virtual void run() override
 
virtual void frame () override
 The Scene main loop logic. This method is executed at VBlank. More...
 
void require_tiledmap_4bpp (int id, int px_width, int px_height, int number_of_tiles)
 
void require_tiledmap_8bpp (int id, int px_width, int px_height, int number_of_tiles)
 
void require_tiledmap (int id, int px_width, int px_height, const AssetData *tileset)
 
void require_bitmap (int id, int px_width, int px_height)
 
void require_bitmap (int id, const DSC::AssetData *bitmap)
 
void require_bitmap_16bpp (int id, int px_width, int px_height)
 
void require_bitmap_16bpp (int id, const DSC::AssetData *bitmap)
 
Spritecreate_sprite (Sprite *sprite)
 
void begin_sprites_init ()
 
void end_sprites_init ()
 
- Public Member Functions inherited from DSC::Scene
 Scene ()=default
 Creates a new Scene instance
More...
 
SceneComclose ()
 Closes this scene and clears all its resources. More...
 
virtual void init ()
 Contains Scene initialization routines (setting variables, loading VRAM etc.) More...
 
virtual void frame ()
 The Scene main loop logic. This method is executed at VBlank. More...
 
 __attribute__ ((noinline)) virtual void run()
 

Static Public Attributes

static constexpr int MAIN_BG0 = 0
 
static constexpr int MAIN_BG1 = 1
 
static constexpr int MAIN_BG2 = 2
 
static constexpr int MAIN_BG3 = 3
 
static constexpr int SUB_BG0 = 4
 
static constexpr int SUB_BG1 = 5
 
static constexpr int SUB_BG2 = 6
 
static constexpr int SUB_BG3 = 7
 

Additional Inherited Members

- Public Attributes inherited from DSC::Scene
Event key_down
 Key down event.
 
Event key_held
 Key held event.
 
Event key_up
 Key up event.
 

Detailed Description

general-purpose scene with 256KB BG-Main VRAM

Size limits:

Member Function Documentation

◆ frame()

virtual void DSC::GenericScene256::frame ( )
overridevirtual

The Scene main loop logic. This method is executed at VBlank.

Reimplemented from DSC::Scene.

◆ init()

virtual void DSC::GenericScene256::init ( )
overridevirtual

Contains Scene initialization routines (setting variables, loading VRAM etc.)

Reimplemented from DSC::Scene.


The documentation for this class was generated from the following file: