require "mspcore";
require "sigc++-2.0";
- if_arch "!windows"
+ if_arch "!windows & !darwin"
{
- if_arch "!darwin"
- {
- require "xlib";
- };
+ require "xlib";
};
if_arch "windows"
{
program "ev"
{
source "examples/ev.cpp";
- build_info
- {
- library "mspgui";
- };
+ use "mspgui";
};
source_tarball
void GLContext::platform_init(const GLOptions &opts)
{
vector<unsigned> attribs;
-
+
attribs.push_back(CPF_DEPTH_SIZE);
attribs.push_back(1);
-
+
if(opts.alpha)
{
attribs.push_back(CPF_ALPHA_SIZE);
attribs.push_back(1);
}
-
+
if(opts.stencil)
{
attribs.push_back(CPF_STENCIL_SIZE);
attribs.push_back(1);
}
-
+
if(opts.doublebuffer)
attribs.push_back(CPF_DOUBLEBUFFER);
-
+
if(opts.multisample>0)
{
attribs.push_back(CPF_SAMPLE_BUFFERS);
namespace Msp {
namespace Graphics {
-Display::Display(const std::string &):
+Display::Display(const string &):
priv(new Private)
{
static ErrorDialog err_dlg(0);
void GLContext::platform_init(const GLOptions &opts)
{
vector<int> attribs;
-
+
attribs.push_back(GLX_RGBA);
attribs.push_back(GLX_DEPTH_SIZE);
attribs.push_back(1);
-
+
if(opts.alpha)
{
attribs.push_back(GLX_ALPHA_SIZE);
attribs.push_back(1);
}
-
+
if(opts.stencil)
{
attribs.push_back(GLX_STENCIL_SIZE);
attribs.push_back(1);
}
-
+
if(opts.doublebuffer)
attribs.push_back(GLX_DOUBLEBUFFER);
-
+
if(opts.multisample>0)
{
attribs.push_back(GLX_SAMPLE_BUFFERS_ARB);
attribs.push_back(GLX_SAMPLES_ARB);
attribs.push_back(opts.multisample);
}
-
+
attribs.push_back(0);
DisplayHandle dpy = display.get_private().display;
}
}
-} // namespace Inpus
+} // namespace Input
} // namespace Msp
namespace Msp {
namespace Input {
-unsigned sys_keymap[N_KEYS_]=
+unsigned sys_keymap[N_KEYS_] =
{
0, 0, 0, 0, 0, 0, 0, 0,
8, 9, 10, 0, 0, 0, 0, 0,
namespace Msp {
namespace Input {
-unsigned sys_keymap[N_KEYS_]=
+unsigned sys_keymap[N_KEYS_] =
{
0, 0, 0, 0, 0, 0, 0, 0,
VK_BACK, VK_TAB, VK_RETURN, 0, 0, 0, 0, 0,
namespace Msp {
namespace Input {
-unsigned sys_keymap[N_KEYS_]=
+unsigned sys_keymap[N_KEYS_] =
{
0, 0, 0, 0, 0, 0, 0, 0,
XK_BackSpace, XK_Tab, XK_Return, 0, 0, 0, 0, 0,