 |
Blamite Game Engine - blam!
00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
33 BLAM void DrawCuboid(BlamVector3 position, BlamVector3 rotation, BlamVector3 scale);
46 BLAM void DrawCylinder(BlamVector3 position, BlamVector3 rotation, BlamVector3 scale,
int resolution,
int radius_top,
int radius_bottom);
StackItemDrawMode draw_mode
The drawing mode of the object.
Definition: render_stack.h:373
BLAM BlamDirector * GetCamera()
Retrieves the director instance.
Definition: director.cpp:31
BLAM void SetClearColor(ImVec4 color)
Changes the color to used to clear the render target.
Definition: rendering_abstraction.cpp:27
BLAM_EXT_API BlamWorldState * GetWorldState()
Retrieves the current world state.
Definition: world.cpp:44
BLAM Ogre::HlmsUnlitDatablock * CreateDefaultUnlitDatablockForPrimitives(std::string id)
Definition: materials.cpp:916
bool visible
Whether or not the object is visible.
Definition: render_stack.h:375
BLAM ImVec4 * GetClearColor()
Retrieves the current color used to clear the render target.
Definition: render_manage.cpp:613
BLAM bool Init()
Definition: socket.cpp:248
BLAM void SetViewClearFlags(int new_flags)
Definition: bgfx.cpp:170
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:142
float fov
The camera's current field of view.
Definition: director.h:85
int width
Definition: bgfx.cpp:19
float far_clip_plane_distance
Definition: director.h:109
BLAM void DisplayDetailedCrashScreen(std::string expression, std::string file, int line, std::string message)
Definition: ogre.cpp:421
IMGUI_API bool Checkbox(const char *label, bool *v)
Definition: imgui_widgets.cpp:974
BLAM BlamUIWidget_Group * GetUIRoot()
Definition: ui.cpp:74
BLAM BlamRenderingEngine GetCurrentRenderingEngine()
Retrieves the current rendering engine being used.
Definition: rendering_abstraction.cpp:104
Namespace containing functions for simple drawing of 2D and 3D primitives.
Definition: primitives.h:24
BLAM void HandleWindowResize(int width, int height, WPARAM wParam)
Definition: rendering_abstraction.cpp:81
BLAM void RenderFrame()
Renders ImGUI to the application window.
Definition: imgui.cpp:237
@ Basic_Rectangle
A basic filled or outline rectangle.
@ OGRE
Definition: rendering.h:41
BLAM void DrawRectangle(BlamVector2 position, BlamVector2 size, float rotation)
Definition: rectangle.cpp:12
BlamRenderingEngine
Enumerator listing possible rendering APIs/engines.
Definition: rendering.h:37
BLAM HWND GetWin32MainWindowHandle()
Retrieves the main window handle of the application.
Definition: main.cpp:734
BLAM void ShowCrashScreen(const char *exc, const char *file, int line, std::string message)
Displays the engine crash screen.
Definition: rendering_abstraction.cpp:62
ARPHIC PUBLIC LICENSE Ltd Yung Chi Taiwan All rights reserved except as specified below Everyone is permitted to copy and distribute verbatim copies of this license but changing it is forbidden Preamble The licenses for most software are designed to take away your freedom to share and change it By the ARPHIC PUBLIC LICENSE specifically permits and encourages you to use this provided that you give the recipients all the rights that we gave you and make sure they can get the modifications of this software Legal Terms Font means the TrueType fonts AR PL Mingti2L AR PL KaitiM AR PL KaitiM and the derivatives of those fonts created through any modification including modifying reordering converting changing font or adding deleting some characters in from glyph table PL means Public License Copyright Holder means whoever is named in the copyright or copyrights for the Font You means the or person redistributing or modifying the Font Freely Available means that you have the freedom to copy or modify the Font as well as redistribute copies of the Font under the same conditions you not price If you you can charge for this service Copying &Distribution You may copy and distribute verbatim copies of this Font in any without provided that you retain this license including modifying reordering converting changing font or adding deleting some characters in from glyph and copy and distribute such modifications under the terms of Section provided that the following conditions are such as by offering access to copy the modifications from a designated or distributing the modifications on a medium customarily used for software interchange c If the modified fonts normally reads commands interactively when you must cause when started running for such interactive use in the most ordinary to print or display an announcement including an appropriate copyright notice and a notice that there is no and telling the user how to view a copy of this License These requirements apply to the modified work as a whole If identifiable sections of that work are not derived from the and can be reasonably considered independent and separate works in then this License and its do not apply to those sections when you distribute them as separate works mere aggregation of another work not based on the Font with the Font on a volume of a storage or distribution medium does not bring the other work under the scope of this License Condition Subsequent You may not copy
Definition: ARPHICPL.TXT:41
BLAM HRESULT SetDisplayRes(int x, int y)
Changes the game's display resolution.
Definition: rendering_abstraction.cpp:8
BLAM ConfigFile * GetConfig()
Retrieves the engine configuration file.
Definition: compat.cpp:5
BLAM void SetClearColor(ImVec4 color)
Changes the color to used to clear the render target.
Definition: render_manage.cpp:567
Definition: primitives.h:9
float near_clip_plane_distance
Definition: director.h:108
BLAM std::vector< StackItemDrawMode > GetDrawModesList()
Retrieves a list of all available drawing modes.
Definition: render_stack.cpp:216
BLAM void DisplayDetailedCrashScreen(const char *expression, const char *file, int line, std::string details)
Displays a detailed engine crash screen.
Definition: render_manage.cpp:443
float thickness
The current border thickness.
Definition: render_stack.h:452
int GetObjectCount()
Definition: BlamWorldState.cpp:101
uint32_t get_vertex_color(int i)
Definition: cylinder.cpp:12
int render_clear_flags
Definition: bgfx.cpp:23
BLAM void HandleWindowReisze(int width, int height)
Definition: bgfx.cpp:150
IMGUI_API bool DragInt(const char *label, int *v, float v_speed=1.0f, int v_min=0, int v_max=0, const char *format="%d")
Definition: imgui_widgets.cpp:2209
BLAM HRESULT UpdateResolution(int x, int y)
Changes the DirectX render target resolution.
Definition: resolution.cpp:9
IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f)
Definition: imgui.cpp:7147
#define BLAM
Definition: primitives.h:6
BLAM ImVec4 * GetClearColor()
Retrieves the color used for render target clearing.
Definition: rendering_abstraction.cpp:46
BLAM void Shutdown()
Definition: bgfx.cpp:143
BLAM int GetRenderHeight()
Definition: bgfx.cpp:190
BLAM void PrepareCamera()
Prepares the director for use.
Definition: director.cpp:5
BLAM void DrawCuboid(BlamVector3 position, BlamVector3 rotation, BlamVector3 scale)
Renders a cuboid to the screen.
Definition: cuboid.cpp:12
void Draw()
Draws the stack object.
Definition: Rectangle.cpp:10
BLAM BlamColor * GetGlobalAsColor(std::string name)
Retrieves a global's value as a BlamColor.
Definition: globals.cpp:419
BLAM Ogre::SceneManager * Get2DSceneManager()
Definition: ogre.cpp:395
IMGUI_API bool DragFloat(const char *label, float *v, float v_speed=1.0f, float v_min=0.0f, float v_max=0.0f, const char *format="%.3f", float power=1.0f)
Definition: imgui_widgets.cpp:2164
float x
Definition: primitives.h:11
void ShowImPropertyEditor()
Shows a set of ImGUI properties associated with the object.
Definition: Rectangle.cpp:28
BLAM HRESULT HandleWindowResize(LPARAM lParam)
Handles a window resize event.
Definition: render_manage.cpp:306
BLAM void DrawCylinder(BlamVector3 position, BlamVector3 rotation, BlamVector3 scale, int resolution, int radius_top, int radius_bottom)
Renders a cylinder to the screen.
Definition: cylinder.cpp:28
@ Float
Represents a float.
Definition: globals.h:50
BlamWorldObject * GetObjectAtIndex(int index)
Definition: BlamWorldState.cpp:122
BLAM void Render()
Definition: ui.cpp:51
BlamColor * bgfx_clear_color
TODO: remove bgfx_ prefix after opengl code is removed because its technically a global variable XDd.
Definition: bgfx.cpp:22
IMGUI_API bool BeginCombo(const char *label, const char *preview_value, ImGuiComboFlags flags=0)
Definition: imgui_widgets.cpp:1416
IMGUI_API bool Selectable(const char *label, bool selected=false, ImGuiSelectableFlags flags=0, const ImVec2 &size=ImVec2(0, 0))
Definition: imgui_widgets.cpp:5469
BLAM HRESULT DrawRect(D2D1_COLOR_F outline_color, D2D1_COLOR_F fill_color, D2D1_RECT_F rect, float thickness, StackItemDrawMode mode)
Draws a rectangle.
Definition: rect.cpp:9
BLAM void RenderLoop()
Definition: bgfx.cpp:65
virtual void Render()
Renders the object to the screen.
Definition: BlamWorldObject.cpp:9
BLAM void ShutdownCamera()
Destroys the director and cleans up any data related to it.
Definition: director.cpp:26
Definition: material.h:53
unsigned int uint32_t
Definition: stdint.h:17
void SetThickness(float new_thickness)
Sets the thickness of the rectangle's border.
Definition: Rectangle.cpp:23
Class representing the Director.
Definition: director.h:27
BLAM ID3D11Device * GetD3DDevice()
Retrieves the current Direct3D device.
Definition: render_manage.cpp:578
@ NotReady
Definition: rendering.h:42
sock planetquake com All rights reserved Quake III Arena is a registered trademark of id Inc This level may be electronically distributed only at NO CHARGE to the recipient in its current MUST include this txt file
Definition: chiropteraDM.txt:95
uint16_t view_2d
The View ID for 2D rendering.
Definition: bgfx.cpp:26
IMGUI_API void EndCombo()
Definition: imgui_widgets.cpp:1522
D2D1_RECT_F area
The area of the object.
Definition: render_stack.h:369
BLAM void LoadShaderPrograms()
Loads all shader programs that aren't tag-based.
Definition: shaders.cpp:8
float y
Definition: primitives.h:12
BLAM int GetRenderWidth()
Definition: bgfx.cpp:185
@ DirectX11
Definition: rendering.h:39
int height
Definition: bgfx.cpp:20
IMGUI_API bool ColorEdit4(const char *label, float col[4], ImGuiColorEditFlags flags=0)
Definition: imgui_widgets.cpp:4154
BlamRenderingEngine current_rendering_engine
Definition: rendering_abstraction.cpp:6
BLAM std::string GetDrawModeLabel(StackItemDrawMode type)
Retrieves a string representation of the specified drawing mode.
Definition: render_stack.cpp:176
BLAM uint16_t Get3DViewID()
Definition: bgfx.cpp:175
IMGUI_API void Separator()
Definition: imgui_widgets.cpp:1284
BlamWidgetType
Enumerator listing possible UI widget types.
Definition: ui.h:60
uint32_t abgr
Definition: primitives.h:14
BLAM std::string GetStringFromHResult(HRESULT hr)
Converts a result handle to a string.
Definition: errors.cpp:120
BLAM void HandleWindowReisze(int width, int height)
Definition: ogre.cpp:348
float z
Definition: primitives.h:13
BLAM void Initialize()
Definition: bgfx.cpp:28
BLAM uint16_t Get2DViewID()
Definition: bgfx.cpp:180
StackItemDrawMode
Enumerator to specify the stack item draw mode.
Definition: render_stack.h:85
BlamVector3 camera_front
The calculated point representing the front of the camera.
Definition: director.h:81
@ BGFX
Definition: rendering.h:40
unsigned short uint16_t
Definition: stdint.h:16
bgfx::ProgramHandle GetProgramHandle()
Definition: BlamShaderProgram.cpp:118
D2D1_COLOR_F fill_color
The current fill color.
Definition: render_stack.h:453
BlamVector3 camera_pos
The current position of the camera.
Definition: director.h:77
Class representing a world state.
Definition: world_objects.h:149
BLAM bool IsEngineConfigurationAvailable()
Definition: config.cpp:82
BLAM bool * GetGlobalAsBoolean(std::string name)
Retrieves a global's value as a boolean.
Definition: globals.cpp:347
BLAM BlamShaderProgram * GetShaderProgram(std::string id)
Definition: shaders.cpp:16
uint16_t view_3d
The View ID for 3D rendering.
Definition: bgfx.cpp:25