mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-07 03:30:44 +00:00
Mac pBuffer stub cleanup
This commit is contained in:
parent
b5425d708e
commit
48796f14ba
@ -8309,7 +8309,7 @@
|
||||
|
||||
1308026543 D
|
||||
|
||||
1308304657 /home/mark/projects/git/sleepyhead/src/version.h
|
||||
1308306194 /home/mark/projects/git/sleepyhead/src/version.h
|
||||
|
||||
1308003040 ent of cb2ab33... Linux wx2.8 & wx2.9 builds fixed
|
||||
<wx/dcbuffer.h>
|
||||
@ -11062,12 +11062,14 @@
|
||||
<string.h>
|
||||
"freetype-gl/vector.h"
|
||||
|
||||
1308302350 /home/mark/projects/git/sleepyhead/src/graphs/gl_pbuffer.h
|
||||
1308306186 /home/mark/projects/git/sleepyhead/src/graphs/gl_pbuffer.h
|
||||
<wx/log.h>
|
||||
<GL/glew.h>
|
||||
<GL/wglew.h>
|
||||
<OpenGL/gl.h>
|
||||
<AGL/agl.h>
|
||||
<Carbon/Carbon.h>
|
||||
<Cocoa/Cocoa.h>
|
||||
<GL/gl.h>
|
||||
<GL/glx.h>
|
||||
|
||||
|
@ -16,14 +16,14 @@
|
||||
<File name="../../src/SleepyHeadMain.h" open="1" top="0" tabpos="2">
|
||||
<Cursor position="2035" topLine="47" />
|
||||
</File>
|
||||
<File name="../../src/graphs/gl_pbuffer.cpp" open="1" top="0" tabpos="5">
|
||||
<Cursor position="8152" topLine="220" />
|
||||
<File name="../../src/graphs/gl_pbuffer.cpp" open="1" top="1" tabpos="5">
|
||||
<Cursor position="7612" topLine="222" />
|
||||
</File>
|
||||
<File name="../../src/graphs/gl_pbuffer.h" open="1" top="0" tabpos="6">
|
||||
<Cursor position="644" topLine="58" />
|
||||
</File>
|
||||
<File name="../../src/graphs/graph.cpp" open="1" top="1" tabpos="3">
|
||||
<Cursor position="454" topLine="0" />
|
||||
<File name="../../src/graphs/graph.cpp" open="1" top="0" tabpos="3">
|
||||
<Cursor position="2743" topLine="83" />
|
||||
</File>
|
||||
<File name="../../src/graphs/graph.h" open="1" top="0" tabpos="4">
|
||||
<Cursor position="10808" topLine="297" />
|
||||
|
@ -338,7 +338,7 @@ pBufferAGL::pBufferAGL(int width, int height)
|
||||
AGL_DEPTH_SIZE, 24,
|
||||
AGL_NONE
|
||||
};
|
||||
display2 = CGDisplayIDToOpenGLDisplayMask(CGMainDisplayID());
|
||||
/*display2 = CGDisplayIDToOpenGLDisplayMask(CGMainDisplayID());
|
||||
|
||||
display = GetMainDevice();
|
||||
wxRect windowRect = { 100, 100, 100 + width, 100 + height };
|
||||
@ -378,7 +378,7 @@ pBufferAGL::pBufferAGL(int width, int height)
|
||||
// initialize window context & draw window
|
||||
GLuint texid;
|
||||
init( context, pbuffer, &texid );
|
||||
drawWindow( context, texid );
|
||||
drawWindow( context, texid ); */
|
||||
// stub event loop
|
||||
}
|
||||
|
||||
@ -386,19 +386,19 @@ pBufferAGL::pBufferAGL(int width, int height)
|
||||
}
|
||||
pBufferAGL::~pBufferAGL()
|
||||
{
|
||||
aglSetCurrentContext( NULL );
|
||||
/*aglSetCurrentContext( NULL );
|
||||
aglDestroyContext( context );
|
||||
aglDestroyContext( pbContext );
|
||||
aglDestroyPBuffer( pbuffer );
|
||||
aglDestroyPBuffer( pbuffer ); */
|
||||
|
||||
}
|
||||
void pBufferAGL::UseBuffer(bool b)
|
||||
{
|
||||
if (b) {
|
||||
/* if (b) {
|
||||
wglMakeCurrent(hdc, hGlRc);
|
||||
} else {
|
||||
wglMakeCurrent(saveHdc, saveHglrc);
|
||||
}
|
||||
} */
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -26,6 +26,14 @@ License: GPL
|
||||
#include <OpenGL/gl.h>
|
||||
#include <AGL/agl.h>
|
||||
|
||||
// Not sure about these
|
||||
#if defined(__WXCARBON__)
|
||||
#include <Carbon/Carbon.h>
|
||||
#elif defined(__WXCOCOA__)
|
||||
#include <Cocoa/Cocoa.h>
|
||||
#endif
|
||||
|
||||
|
||||
#elif defined(__UNIX__)
|
||||
#include <GL/gl.h>
|
||||
#include <GL/glx.h>
|
||||
@ -102,12 +110,12 @@ public:
|
||||
virtual ~pBufferAGL();
|
||||
virtual void UseBuffer(bool b);
|
||||
protected:
|
||||
AGLPixelFormat pixelFormat;
|
||||
/* AGLPixelFormat pixelFormat;
|
||||
AGLPbuffer pbuffer;
|
||||
AGLContext context, pbContext;
|
||||
long virtualScreen;
|
||||
GDHandle display2;
|
||||
GDHandle display;
|
||||
GDHandle display; */
|
||||
};
|
||||
#endif
|
||||
|
||||
|
@ -16,14 +16,14 @@ namespace AutoVersion{
|
||||
//Standard Version Type
|
||||
static const long _MAJOR = 0;
|
||||
static const long _MINOR = 7;
|
||||
static const long _BUILD = 6515;
|
||||
static const long _REVISION = 18840;
|
||||
static const long _BUILD = 6516;
|
||||
static const long _REVISION = 18844;
|
||||
|
||||
//Miscellaneous Version Types
|
||||
static const long _BUILDS_COUNT = 7759;
|
||||
#define _RC_FILEVERSION 0,7,6515,18840
|
||||
#define _RC_FILEVERSION_STRING "0, 7, 6515, 18840\0"
|
||||
static const char _FULLVERSION_STRING[] = "0.7.6515.18840";
|
||||
#define _RC_FILEVERSION 0,7,6516,18844
|
||||
#define _RC_FILEVERSION_STRING "0, 7, 6516, 18844\0"
|
||||
static const char _FULLVERSION_STRING[] = "0.7.6516.18844";
|
||||
|
||||
//These values are to keep track of your versioning state, don't modify them.
|
||||
static const long _BUILD_HISTORY = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user