FpsProviderDummyGraphicEnginepublic abstract class GraphicEngine extends Object implements FpsProvider
| Modifier and Type | Class | Description |
|---|---|---|
static class |
GraphicEngine.ShadowType |
Possible type of shadows.
|
| Constructor | Description |
|---|---|
GraphicEngine() |
| Modifier and Type | Method | Description |
|---|---|---|
abstract void |
addResourcePath(be.yildizgames.common.file.ResourcePath resource) |
Add a folder to use to load resources.
|
abstract void |
close() |
Free resources used by the engine.
|
Font |
createFont(String name,
String path,
int size) |
Create a new font to use to print text.
|
abstract Font |
createFont(String name,
String path,
int size,
Color color) |
Create a new font to use to print text.
|
abstract Shader |
createFragmentShader(String name,
String file,
String entry,
Shader.FragmentProfileList profile) |
Create a shader fragment type.
|
abstract SceneManager |
createGraphicWorld(String worldName,
GraphicEngine.ShadowType shadowType) |
Create a new graphic world.
|
abstract Material |
createMaterial(String name) |
Build a new Material.
|
abstract SelectionRectangle |
createSelectionRectangle(Material border,
Material inner) |
Create a new Selection Rectangle, only one can be used at a time, if more
than one is created, an exception is thrown.
|
abstract Skybox |
createSkybox(String name,
String path) |
Create a sky box.
|
abstract Shader |
createVertexShader(String name,
String file,
String entry,
Shader.VertexProfileList profile) |
Create a shader vertex type.
|
abstract GraphicWorld |
createWorld() |
|
static GraphicEngine |
getEngine() |
|
GuiEventManager |
getEventManager() |
|
abstract GuiFactory |
getGuiBuilder() |
Provide the module responsible to build GUI elements.
|
abstract Size |
getScreenSize() |
|
abstract WindowEngine |
getWindowEngine() |
|
abstract void |
printScreen() |
Print the current rendering frame and save it in a file.
|
abstract void |
update() |
Render one frame.
|
getFPSpublic static GraphicEngine getEngine()
public final GuiEventManager getEventManager()
public abstract void close()
public abstract void update()
public abstract void printScreen()
public abstract void addResourcePath(be.yildizgames.common.file.ResourcePath resource)
resource - Data for the resources.public abstract GuiFactory getGuiBuilder()
public abstract Material createMaterial(String name)
name - Material name, must be unique.public abstract Skybox createSkybox(String name, String path)
name - Sky box unique name.path - Path to images to use.public abstract SelectionRectangle createSelectionRectangle(Material border, Material inner)
border - Material to set.inner - Inner material.public abstract Font createFont(String name, String path, int size, Color color)
name - 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 final Font createFont(String name, String path, int size)
name - 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.public abstract SceneManager createGraphicWorld(String worldName, GraphicEngine.ShadowType shadowType)
worldName - Unique name to give to the world.shadowType - Type of the shadow to use.public abstract Shader createFragmentShader(String name, String file, String entry, Shader.FragmentProfileList profile)
name - Shader name.file - Shader file.entry - Entry point name.profile - Profile to set.public abstract Shader createVertexShader(String name, String file, String entry, Shader.VertexProfileList profile)
name - Shader name.file - Shader file.entry - Entry point name.profile - Profile to set.public abstract GraphicWorld createWorld()
public abstract Size getScreenSize()
public abstract WindowEngine getWindowEngine()
Copyright © 2014–2018. All rights reserved.