Nebula
Loading...
Searching...
No Matches
window.h File Reference

Go to the source code of this file.

Classes

struct  CoreGraphics::WindowId
struct  CoreGraphics::WindowCreateInfo

Namespaces

namespace  CoreGraphics
 Acceleration structures are used to enable ray tracing on the GPU by dividing the scene into a BVH.

Functions

const WindowId CoreGraphics::CreateMainWindow (const WindowCreateInfo &info)
 create the main window
const WindowId CoreGraphics::CreateWindow (const WindowCreateInfo &info)
 create new window
void CoreGraphics::DestroyWindow (const WindowId id)
 destroy window
void CoreGraphics::WindowResize (const WindowId id, SizeT newWidth, SizeT newHeight)
 resize window
Math::int2 CoreGraphics::WindowGetSize (const WindowId id)
 Get window size.
void CoreGraphics::WindowReposition (const WindowId id, int x, int y)
 Set window position.
Math::int2 CoreGraphics::WindowGetPosition (const WindowId id)
 Get window position.
void CoreGraphics::WindowSetTitle (const WindowId id, const Util::String &title)
 set title for window
void CoreGraphics::WindowSetIcon (const WindowId id, const Util::String &icon)
 Set window icon.
void CoreGraphics::WindowShow (const WindowId id)
 Show window.
void CoreGraphics::WindowPresent (const WindowId id, const IndexT frameIndex)
 present window
void CoreGraphics::WindowPollEvents ()
 poll events for window
void CoreGraphics::WindowNewFrame (const WindowId id)
 Do new frame stuff for window.
void CoreGraphics::WindowApplyFullscreen (const WindowId id, Adapter::Code monitor, bool b)
 toggle fullscreen
void CoreGraphics::WindowSetCursorVisible (const WindowId id, bool b)
 set if the cursor should be visible
void CoreGraphics::WindowSetCursorLocked (const WindowId id, bool b)
 set if the cursor should be locked to the window
void CoreGraphics::WindowTakeFocus (const WindowId id)
 Focus window.
void * CoreGraphics::WindowGetUserData (const WindowId id)
 Get user data associated with window.
const CoreGraphics::DisplayMode CoreGraphics::WindowGetDisplayMode (const WindowId id)
 get display mode from window
const CoreGraphics::AntiAliasQuality::Code CoreGraphics::WindowGetAAQuality (const WindowId id)
 get display antialias quality
const bool CoreGraphics::WindowIsFullscreen (const WindowId id)
 get if fullscreen
const bool CoreGraphics::WindowIsDecorated (const WindowId id)
 get if window is modal
const bool CoreGraphics::WindowIsResizable (const WindowId id)
 get if we are allowed to switch the display mode
const Util::StringAtomCoreGraphics::WindowGetTitle (const WindowId id)
 get window title
const Util::StringAtomCoreGraphics::WindowGetIcon (const WindowId id)
 get window icon
Math::vec2 CoreGraphics::WindowGetContentScale (const WindowId id)
 retrieve window content scaling (ratio between current DPI and platform default DPI)
const CoreGraphics::SwapchainId CoreGraphics::WindowGetSwapchain (const WindowId id)
 Get swapchain associated with this window.