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,
Color color) |
Create a new font to use to print text.
|
Shader |
createFragmentShader(String name,
String file,
String entry,
Shader.FragmentProfileList profile) |
Create a shader fragment type.
|
SceneManager |
createGraphicWorld(String worldName,
GraphicEngine.ShadowType shadowType) |
Create a new graphic world.
|
Material |
createMaterial(String name) |
Build a new Material.
|
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.
|
Shader |
createVertexShader(String name,
String file,
String entry,
Shader.VertexProfileList profile) |
Create a shader vertex type.
|
GraphicWorld |
createWorld() |
|
float |
getFPS() |
Provide the frame per seconds.
|
GuiFactory |
getGuiBuilder() |
Provide the module responsible to build GUI elements.
|
Size |
getScreenSize() |
|
WindowEngine |
getWindowEngine() |
|
void |
printScreen() |
Print the current rendering frame and save it in a file.
|
void |
update() |
Render one frame.
|
createFont, 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 Material createMaterial(String name)
GraphicEnginecreateMaterial in class GraphicEnginename - Material name, must be unique.public 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 Shader createFragmentShader(String name, String file, String entry, Shader.FragmentProfileList profile)
GraphicEnginecreateFragmentShader in class GraphicEnginename - Shader name.file - Shader file.entry - Entry point name.profile - Profile to set.public Shader createVertexShader(String name, String file, String entry, Shader.VertexProfileList profile)
GraphicEnginecreateVertexShader in class GraphicEnginename - Shader name.file - Shader file.entry - Entry point name.profile - Profile to set.public Font createFont(String name, String path, int size, 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 Size getScreenSize()
getScreenSize in class GraphicEnginepublic WindowEngine getWindowEngine()
getWindowEngine in class GraphicEngineCopyright © 2014–2018. All rights reserved.