WOWCube Docs logo
WOWCube Docs
Mission Control
Section Shortcuts
APIExamplesSourceWOWConnectChangelog
Filters
SDK and language defaults persist in cookies.
SDK version
Navigation Tree
Collapsed by default, focused on the active path.
Made byMcKay Seamons
GitHub
  1. Home
  2. Docs
  3. Examples
  4. GfxRenderTarget.h
Mission NodeSDK 6.1C++renderingProject Included

GfxRenderTarget.h

Example: GfxRenderTarget.h

Examples / SDK 6.1 / C++ / rendering / Gfx Engine - Offscreen Render Targets / project / src
GfxRenderTarget.h
CPP
1// This header file is generated by WOWCube SDK project wizard
2#pragma once
3
4#include "Gfx.h"
5
6enum GfxObjects
7{
8 myBackground=0,
9 mySprite,
10 myRT = 5,
11 terrain=10,
12 plant,plant2,plant3,plant4,
13 rock,rock2,rock3,
14 pit
15};
16
17class RenderTarget: public Cubios::Application
18{
19public:
20 RenderTarget();
21 virtual ~RenderTarget();
22
23 virtual void on_PhysicsTick(const std::array<Cubios::Screen, 3>& screens) override;
24 virtual void on_Twist(const Cubios::TOPOLOGY_twistInfo_t& twist) override;
25 virtual void on_Message(uint32_t type, uint8_t* pkt, u32_t size) override;
26 virtual void on_ExternalMessage(uint8_t* pkt, u32_t size) override;
27 virtual void on_Tap(uint32_t count) override;
28 virtual void on_Render(std::array<Cubios::Screen, 3>& screens) override;
29 virtual void on_Tick(uint32_t currentTime, uint32_t deltaTime) override;
30 virtual void on_Timer(uint8_t timerID) override;
31
32 void InitializeResources();
33
34private:
35
36 void prepareOffscreenResource();
37};
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.
Context Rail

Project files

GfxRenderTarget.cpp
project/src/GfxRenderTarget.cpp
GfxRenderTarget.h
project/src/GfxRenderTarget.h
wowcubeapp-build.json
project/wowcubeapp-build.json
Context Rail

Related nodes

GfxRenderTarget.cpp
Examples / SDK 6.1 / C++ / rendering / Gfx Engine - Offscreen Render Targets / project / src
Gfx Engine - Offscreen Render Targets
Examples / SDK 6.1 / C++ / rendering
info.json
Examples / SDK 6.1 / C++ / rendering / Gfx Engine - Offscreen Render Targets
wowcubeapp-build.json
Examples / SDK 6.1 / C++ / rendering / Gfx Engine - Offscreen Render Targets / project
Previous Node
GfxRenderTarget.cpp
Examples / SDK 6.1 / C++ / rendering / Gfx Engine - Offscreen Render Targets / project / src
Next Node
wowcubeapp-build.json
Examples / SDK 6.1 / C++ / rendering / Gfx Engine - Offscreen Render Targets / project