FpsProviderpublic final class DummyGraphicEngine extends GraphicEngine
GraphicEngine.ShadowType| Modifier and Type | Method | Description |
|---|---|---|
void |
addResourcePath(be.yildizgames.common.file.ResourcePath resourcePath) |
Add a folder to use to load resources.
|
void |
close() |
Free resources used by the engine.
|
Font |
createFont(String name,
String path,
int size,
be.yildizgames.module.color.Color color) |
Create a new font to use to print text.
|
SceneManager |
createGraphicWorld(String worldName,
GraphicEngine.ShadowType shadowType) |
Create a new graphic world.
|
SelectionRectangle |
createSelectionRectangle(Material texture,
Material texture2) |
Create a new Selection Rectangle, only one can be used at a time, if more
than one is created, an exception is thrown.
|
Skybox |
createSkybox(String name,
String path) |
Create a sky box.
|
GraphicWorld |
createWorld() |
|
float |
getFPS() |
Provide the frame per seconds.
|
GuiFactory |
getGuiBuilder() |
Provide the module responsible to build GUI elements.
|
MaterialManager |
getMaterialManager() |
|
be.yildizgames.module.coordinate.Size |
getScreenSize() |
|
be.yildizgames.module.window.WindowEngine |
getWindowEngine() |
|
void |
printScreen() |
Print the current rendering frame and save it in a file.
|
void |
update() |
Render one frame.
|
createFont, getEngine, getEngine, getEventManagerpublic void close()
GraphicEngineclose in class GraphicEnginepublic void update()
GraphicEngineupdate in class GraphicEnginepublic void printScreen()
GraphicEngineprintScreen in class GraphicEnginepublic void addResourcePath(be.yildizgames.common.file.ResourcePath resourcePath)
GraphicEngineaddResourcePath in class GraphicEngineresourcePath - Data for the resources.public GuiFactory getGuiBuilder()
GraphicEnginegetGuiBuilder in class GraphicEnginepublic MaterialManager getMaterialManager()
getMaterialManager in class GraphicEnginepublic Skybox createSkybox(String name, String path)
GraphicEnginecreateSkybox in class GraphicEnginename - Sky box unique name.path - Path to images to use.public SelectionRectangle createSelectionRectangle(Material texture, Material texture2)
GraphicEnginecreateSelectionRectangle in class GraphicEnginetexture - Material to set.texture2 - Inner material.public float getFPS()
FpsProviderpublic SceneManager createGraphicWorld(String worldName, GraphicEngine.ShadowType shadowType)
GraphicEnginecreateGraphicWorld in class GraphicEngineworldName - Unique name to give to the world.shadowType - Type of the shadow to use.public Font createFont(String name, String path, int size, be.yildizgames.module.color.Color color)
GraphicEnginecreateFont in class GraphicEnginename - Name of the font, must be unique, used to retrieve it from the
registerer.path - Path to the font file to load.size - Size of the font.color - Font color.public GraphicWorld createWorld()
createWorld in class GraphicEnginepublic be.yildizgames.module.coordinate.Size getScreenSize()
getScreenSize in class GraphicEnginepublic be.yildizgames.module.window.WindowEngine getWindowEngine()
getWindowEngine in class GraphicEngineCopyright © 2014–2018. All rights reserved.