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::CreateWindow (const WindowCreateInfo &info)
 create new window
 
const WindowId CoreGraphics::EmbedWindow (const Util::Blob &windowData)
 embed window in another window
 
void CoreGraphics::DestroyWindow (const WindowId id)
 destroy window
 
void CoreGraphics::WindowResize (const WindowId id, SizeT newWidth, SizeT newHeight)
 resize window
 
void CoreGraphics::WindowSetTitle (const WindowId id, const Util::String &title)
 set title for window
 
void CoreGraphics::WindowMakeCurrent (const WindowId id)
 make window 'current'
 
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
 
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.