Demos update
-added some new types to gui manager + some fixes -TexCoordsManager now working (probably) -added CRenderDefault components which makes entities without texcoords possible to draw -makes better way of binding demos to launcher -moved some registration related to rendering to one function (basic components + draw system) -added Sandbox demo (demo which takes all demos to one demo) -extends ParticlesDemo play area -added BirckBreaker demo (WIP) -added special material to additive particles -added whole bunch of rendering code to rendering module -added ability to show filtered entities (blinking)
This commit is contained in:
parent
ef4faf2755
commit
b0b64b965f
12 changed files with 1122 additions and 74 deletions
|
|
@ -851,6 +851,8 @@ __gshared Snake* snake;
|
|||
|
||||
void snakeStart()
|
||||
{
|
||||
import game_core.rendering;
|
||||
|
||||
snake = Mallocator.make!Snake;
|
||||
|
||||
snake.texture.create();
|
||||
|
|
@ -860,6 +862,8 @@ void snakeStart()
|
|||
|
||||
launcher.manager.registerPass("fixed");
|
||||
|
||||
registerRenderingModule(launcher.manager);
|
||||
|
||||
launcher.manager.registerComponent!CLocation;
|
||||
launcher.manager.registerComponent!CILocation;
|
||||
launcher.manager.registerComponent!CSnake;
|
||||
|
|
@ -983,4 +987,14 @@ bool snakeLoop()
|
|||
launcher.manager.end();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
DemoCallbacks getSnakeDemo()
|
||||
{
|
||||
DemoCallbacks demo;
|
||||
demo.initialize = &snakeStart;
|
||||
demo.deinitialize = &snakeEnd;
|
||||
demo.loop = &snakeLoop;
|
||||
demo.tips = snake.tips;
|
||||
return demo;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue