载入中...
搜索中...
未找到
eve::demo::Demo类 参考

Optional demo-only helpers (procedural SFX / planet albedo). Built only when EVENGINE_BUILD_DEMO=ON; other games need not link or compile this. 更多...

#include <Demo.h>

类 eve::demo::Demo 继承关系图:
eve::Module

Public 成员函数

 Module_REG (Demo)
 
 Demo ()
 Constructs a Demo.
 
 ~Demo () override
 Releases Demo resources.
 
sound::SoundData * newSound (const std::string &kind)
 kind: "music" | "shoot" | "explode" | "hit"
 
graphics::Texture * newPlanetTexture (graphics::Graphics *gfx)
 Equirectangular planet albedo uploaded via Graphics::newTexture.
 
- Public 成员函数 继承自 eve::Module
virtual ~Module ()
 Module.
 
virtual std::string getName () const =0
 Returns the name.
 

详细描述

Optional demo-only helpers (procedural SFX / planet albedo). Built only when EVENGINE_BUILD_DEMO=ON; other games need not link or compile this.

在文件 Demo.h 第 22 行定义.

构造及析构函数说明

◆ Demo()

eve::demo::Demo::Demo ( )
default

Constructs a Demo.

◆ ~Demo()

eve::demo::Demo::~Demo ( )
overridedefault

Releases Demo resources.

成员函数说明

◆ Module_REG()

eve::demo::Demo::Module_REG ( Demo  )

◆ newPlanetTexture()

graphics::Texture * eve::demo::Demo::newPlanetTexture ( graphics::Graphics *  gfx)

Equirectangular planet albedo uploaded via Graphics::newTexture.

在文件 Demo.cpp 第 169 行定义.

引用了 b, c, clouds, depth, g, grain, n, eve::graphics::Graphics::newTexture(), px, r, u, v, x , 以及 y.

◆ newSound()

sound::SoundData * eve::demo::Demo::newSound ( const std::string &  kind)

kind: "music" | "shoot" | "explode" | "hit"

在文件 Demo.cpp 第 161 行定义.

引用了 kind.


该类的文档由以下文件生成: