Nebula
Loading...
Searching...
No Matches
glfwwindow.cc File Reference
#include "coregraphics/config.h"
#include "glfwwindow.h"
#include "glfwdisplaydevice.h"
#include "input/key.h"
#include "coregraphics/displayevent.h"
#include "coregraphics/displaydevice.h"
#include "math/scalar.h"
#include "coregraphics/swapchain.h"
#include "coregraphics/load/glimltypes.h"
#include "stb_image.h"

Namespaces

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

Functions

void GLFW::KeyFunc (const CoreGraphics::WindowId &id, int key, int scancode, int action, int mods)
 Keyboard callback.
void GLFW::CharFunc (const CoreGraphics::WindowId &id, unsigned int key)
 Character callback.
void GLFW::MouseButtonFunc (const CoreGraphics::WindowId &id, int button, int action, int mods)
 Mouse Button callback.
void GLFW::MouseFunc (const CoreGraphics::WindowId &id, double xpos, double ypos)
 Mouse callback.
void GLFW::ScrollFunc (const CoreGraphics::WindowId &id, double xs, double ys)
 Scroll callback.
void GLFW::CloseFunc (const CoreGraphics::WindowId &id)
 window close func
void GLFW::FocusFunc (const CoreGraphics::WindowId &id, int focus)
 window focus
void GLFW::EnableCallbacks (const CoreGraphics::WindowId &id)
 enables callbacks
void GLFW::DisableCallbacks (const CoreGraphics::WindowId &id)
 disables callbacks
const WindowId GLFW::InternalSetupFunction (const WindowCreateInfo &info)
 internal setup function, either does embedding or ordinary opening
void GLFW::ResizeFunc (const CoreGraphics::WindowId &id, int width, int height)
 window resize
void GLFW::MoveFunc (const CoreGraphics::WindowId &id, int x, int y)
 Window move.
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::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.
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.
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
const CoreGraphics::SwapchainId CoreGraphics::WindowGetSwapchain (const WindowId id)
 Get swapchain associated with this window.

Variables

WindowId CoreGraphics::UpdatingWindow = CoreGraphics::InvalidWindowId
WindowId CoreGraphics::FocusWindow = CoreGraphics::InvalidWindowId
WindowId CoreGraphics::MainWindow = CoreGraphics::InvalidWindowId
GLFWWindowAllocatorType CoreGraphics::glfwWindowAllocator (0x00FFFFFF)