palliate v0.0.1
Palliate application and built-in plugins
UI::GL::Window Class Reference

#include <window.h>

Inheritance diagram for UI::GL::Window:

Public Member Functions

 Window (std::string const &name, Util::rect position, Window *parent)
 
void initialize (GLuint program)
 
void attention () override
 
std::bitset< 8 > & get_flags () override
 
void resize (unsigned width, unsigned height) override
 
void move (int x, int y) override
 
void title (const std::string &title) override
 
void icon (unsigned height, unsigned width, const char *data) override
 
void wireframe (bool status) override
 
bool render () override
 

Static Public Member Functions

static Windowget (GLFWwindow *context)
 

Protected Attributes

GLFWwindow * context
 
GLuint program
 
GLuint VAO
 
GLuint VBO
 
GLuint EBO
 
GLuint TBO
 
GLuint texture
 
GLuint texture_shift
 
unsigned texture_width
 
unsigned texture_height
 
GLFWimage current_icon
 
std::string current_title
 
Util::rect position = {0}
 
float tex_coords [8] = {1.0f, 0.0f, 1.0f, 1.0f, 0.0f, 1.0f, 0.0f, 0.0f}
 
std::atomic_flag moved = ATOMIC_FLAG_INIT
 

Friends

class context_guard
 

Constructor & Destructor Documentation

◆ Window()

Window::Window ( std::string const &  name,
Util::rect  position,
Window parent 
)

Member Function Documentation

◆ attention()

void Window::attention ( )
override

◆ get()

Window * Window::get ( GLFWwindow *  context)
static

◆ get_flags()

std::bitset< 8 > & Window::get_flags ( )
override

◆ icon()

void Window::icon ( unsigned  height,
unsigned  width,
const char *  data 
)
override

◆ initialize()

void Window::initialize ( GLuint  program)

◆ move()

void Window::move ( int  x,
int  y 
)
override

◆ render()

bool Window::render ( )
override

◆ resize()

void Window::resize ( unsigned  width,
unsigned  height 
)
override

◆ title()

void Window::title ( const std::string &  title)
override

◆ wireframe()

void Window::wireframe ( bool  status)
override

Friends And Related Function Documentation

◆ context_guard

friend class context_guard
friend

Member Data Documentation

◆ context

GLFWwindow* UI::GL::Window::context
protected

◆ current_icon

GLFWimage UI::GL::Window::current_icon
protected

◆ current_title

std::string UI::GL::Window::current_title
protected

◆ EBO

GLuint UI::GL::Window::EBO
protected

◆ moved

std::atomic_flag UI::GL::Window::moved = ATOMIC_FLAG_INIT
protected

◆ position

Util::rect UI::GL::Window::position = {0}
protected

◆ program

GLuint UI::GL::Window::program
protected

◆ TBO

GLuint UI::GL::Window::TBO
protected

◆ tex_coords

float UI::GL::Window::tex_coords[8] = {1.0f, 0.0f, 1.0f, 1.0f, 0.0f, 1.0f, 0.0f, 0.0f}
protected

◆ texture

GLuint UI::GL::Window::texture
protected

◆ texture_height

unsigned UI::GL::Window::texture_height
protected

◆ texture_shift

GLuint UI::GL::Window::texture_shift
protected

◆ texture_width

unsigned UI::GL::Window::texture_width
protected

◆ VAO

GLuint UI::GL::Window::VAO
protected

◆ VBO

GLuint UI::GL::Window::VBO
protected

The documentation for this class was generated from the following files: