source/Platform/Unix: stub implementation
This commit is contained in:
parent
b0d14b91e0
commit
38d333862a
20 changed files with 498 additions and 2 deletions
39
source/Platform/Unix/GLXContext.h
Normal file
39
source/Platform/Unix/GLXContext.h
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
|
||||
#ifndef PLATFORM_UNIX_GLXCONTEXT_H
|
||||
#define PLATFORM_UNIX_GLXCONTEXT_H
|
||||
|
||||
// X11 OpenGL Context (glx)
|
||||
|
||||
#include <Spectre/Display/GLContext.h>
|
||||
|
||||
namespace sp {
|
||||
|
||||
class GLXContext : public GLContext
|
||||
{
|
||||
public :
|
||||
GLXContext();
|
||||
~GLXContext();
|
||||
|
||||
// Create a context associated with a display.
|
||||
bool create(const PlatformDisplay* display);
|
||||
|
||||
void destroy();
|
||||
|
||||
bool activate();
|
||||
|
||||
bool deactivate();
|
||||
|
||||
bool isActive() const;
|
||||
|
||||
bool setSwapInterval(int interval);
|
||||
|
||||
void setSize(unsigned int width, unsigned int height);
|
||||
|
||||
void setSize(const Vector2u size);
|
||||
|
||||
void swapBuffers();
|
||||
};
|
||||
|
||||
} // namespace sp
|
||||
|
||||
#endif /* PLATFORM_UNIX_GLXCONTEXT_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue