-
- All Known Implementing Classes:
BaseGraphicEngine,DummyGraphicEngine
public interface GraphicEngine
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FontcreateFont(String path, int size, be.yildizgames.module.color.Color color)Create a new font with a given color and a random name.FontcreateFont(String path, be.yildizgames.module.coordinate.Relative size, be.yildizgames.module.color.Color color)Create a new font with a given color and a random name.FontcreateFont(String name, String path, int size)Create a new font to use to print text.FontcreateFont(String name, String path, int size, be.yildizgames.module.color.Color color)Create a new font to use to print text.FontcreateFont(String name, String path, be.yildizgames.module.coordinate.Relative size)Create a new font.FontcreateFont(String name, String path, be.yildizgames.module.coordinate.Relative size, be.yildizgames.module.color.Color color)Create a new font with a given color.SelectionRectanglecreateSelectionRectangle(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.SkyboxcreateSkybox(String name, String path)Create a sky box.GuiEventManagergetEventManager()GuiFactorygetGuiFactory()Provide the module responsible to build GUI elements.MaterialManagergetMaterialManager()be.yildizgames.module.window.ScreenSizegetScreenSize()voidprintScreen()Print the current rendering frame and save it in a file.
-
-
-
Method Detail
-
printScreen
void printScreen()
Print the current rendering frame and save it in a file.
-
getEventManager
GuiEventManager getEventManager()
-
getGuiFactory
GuiFactory getGuiFactory()
Provide the module responsible to build GUI elements.- Returns:
- The GuiBuilder.
-
getScreenSize
be.yildizgames.module.window.ScreenSize getScreenSize()
-
getMaterialManager
MaterialManager getMaterialManager()
-
createSelectionRectangle
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.- Parameters:
border- Material to set.inner- Inner material.- Returns:
- The created object.
-
createSkybox
Skybox createSkybox(String name, String path)
Create a sky box.- Parameters:
name- Sky box unique name.path- Path to images to use.- Returns:
- The created object.
-
createFont
Font createFont(String path, be.yildizgames.module.coordinate.Relative size, be.yildizgames.module.color.Color color)
Create a new font with a given color and a random name.- Parameters:
path- Path to the font file.size- Size of the font.color- Font color.- Returns:
- The newly created font.
-
createFont
Font createFont(String name, String path, be.yildizgames.module.coordinate.Relative size)
Create a new font.- Parameters:
name- Font name, must be unique.path- Path to the font file.size- Size of the font.- Returns:
- The newly created font.
-
createFont
Font createFont(String name, String path, be.yildizgames.module.coordinate.Relative size, be.yildizgames.module.color.Color color)
Create a new font with a given color.- Parameters:
name- Font name, must be unique.path- Path to the font file.size- Size of the font.color- Font color.- Returns:
- The newly created font.
-
createFont
Font createFont(String name, String path, int size, be.yildizgames.module.color.Color color)
Create a new font to use to print text.- Parameters:
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.- Returns:
- The newly built font.
-
createFont
Font createFont(String name, String path, int size)
Create a new font to use to print text.- Parameters:
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.- Returns:
- The newly built font.
-
-