Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/voglcommon/vogl_gl_replayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@ class vogl_gl_replayer
int find_attrib_key(const vogl::vector<int> &attrib_list, int key_to_find);

status_t create_context_attribs(
vogl_trace_context_ptr_value trace_context, vogl_trace_context_ptr_value trace_share_context, GLReplayContextType replay_share_context, Bool direct,
vogl_trace_context_ptr_value trace_context, vogl_trace_context_ptr_value trace_share_context, GLReplayContextType replay_share_context, int direct,
const int *pTrace_attrib_list, int trace_attrib_list_size, bool expecting_attribs);

status_t process_pending_make_current();
Expand Down
10 changes: 5 additions & 5 deletions src/voglcommon/vogl_replay_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ bool vogl_replay_window::get_actual_dimensions(uint32_t &width, uint32_t &height
#endif
}

GLReplayContextType vogl_replay_window::create_context(GLReplayContextType replay_share_context, Bool direct)
GLReplayContextType vogl_replay_window::create_context(GLReplayContextType replay_share_context, int direct)
{
#if (VOGL_PLATFORM_HAS_SDL)
if (replay_share_context)
Expand All @@ -187,7 +187,7 @@ GLReplayContextType vogl_replay_window::create_context(GLReplayContextType repla
#endif
}

GLReplayContextType vogl_replay_window::create_new_context(GLReplayContextType replay_share_context, int render_type, Bool direct)
GLReplayContextType vogl_replay_window::create_new_context(GLReplayContextType replay_share_context, int render_type, int direct)
{
#if (VOGL_PLATFORM_HAS_SDL)
if (replay_share_context)
Expand All @@ -206,7 +206,7 @@ GLReplayContextType vogl_replay_window::create_new_context(GLReplayContextType r
}


GLReplayContextType vogl_replay_window::create_context_attrib(GLReplayContextType replay_share_context, Bool direct, const int * pAttrib_list)
GLReplayContextType vogl_replay_window::create_context_attrib(GLReplayContextType replay_share_context, int direct, const int * pAttrib_list)
{
#if (VOGL_PLATFORM_HAS_SDL)
// TODO: This is actually a bit complicated, we need to decode the the attrib list into SDL attribs.
Expand Down Expand Up @@ -245,7 +245,7 @@ void vogl_replay_window::destroy_context(GLReplayContextType context)
#endif
}

Bool vogl_replay_window::is_direct(GLReplayContextType replay_context)
int vogl_replay_window::is_direct(GLReplayContextType replay_context)
{
#if (VOGL_PLATFORM_HAS_SDL)
// We don't have a good way to ask here, so just say yes.
Expand All @@ -267,7 +267,7 @@ void vogl_replay_window::swap_buffers()
}


Bool vogl_replay_window::query_version(int *out_major, int *out_minor)
int vogl_replay_window::query_version(int *out_major, int *out_minor)
{
VOGL_ASSERT(out_major != NULL);
VOGL_ASSERT(out_minor != NULL);
Expand Down
10 changes: 5 additions & 5 deletions src/voglcommon/vogl_replay_window.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,23 +94,23 @@ class vogl_replay_window
bool get_actual_dimensions(uint32_t &width, uint32_t &height) const;

// Create a simple context for this window (using glXCreateContext)
GLReplayContextType create_context(GLReplayContextType replay_share_context, Bool direct);
GLReplayContextType create_context(GLReplayContextType replay_share_context, int direct);

// Create a context using glXCreateNewContext, if available.
GLReplayContextType create_new_context(GLReplayContextType replay_share_context, int render_type, Bool direct);
GLReplayContextType create_new_context(GLReplayContextType replay_share_context, int render_type, int direct);

// Create a context with CreateContextAttribs on this platform
GLReplayContextType create_context_attrib(GLReplayContextType replay_share_context, Bool direct, const int *pAttrib_list);
GLReplayContextType create_context_attrib(GLReplayContextType replay_share_context, int direct, const int *pAttrib_list);

// Make the replay context current on this window
bool make_current(GLReplayContextType context);

// Destroy this context, which should be associated with this window.
void destroy_context(GLReplayContextType context);

Bool query_version(int *out_major, int *out_minor);
int query_version(int *out_major, int *out_minor);

Bool is_direct(GLReplayContextType replay_context);
int is_direct(GLReplayContextType replay_context);

void swap_buffers();

Expand Down
13 changes: 13 additions & 0 deletions src/vogleditor/fix_x11.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#if defined(PLATFORM_LINUX)
#undef Bool
#undef CursorShape
#undef Expose
#undef KeyPress
#undef KeyRelease
#undef FocusIn
#undef FocusOut
#undef FontChange
#undef None
#undef Status
#undef Unsorted
#endif
1 change: 1 addition & 0 deletions src/vogleditor/vogleditor_apicalltreeitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

#include "vogleditor_frameitem.h"
#include "vogl_common.h"
#include "fix_x11.h"
#include "vogl_trace_file_reader.h"
#include "vogl_trace_packet.h"
#include "vogl_trace_stream_types.h"
Expand Down
1 change: 1 addition & 0 deletions src/vogleditor/vogleditor_apicalltreeitem.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <QVariant>
#include "vogl_core.h"
#include "vogl_common.h"
#include "fix_x11.h"

class vogleditor_frameItem;
class vogleditor_groupItem;
Expand Down
1 change: 1 addition & 0 deletions src/vogleditor/vogleditor_qapicalltreemodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <QAbstractItemModel>
#include <QLinkedList>
#include "vogl_common.h"
#include "fix_x11.h"

class QVariant;
class vogleditor_apiCallTreeItem;
Expand Down
1 change: 1 addition & 0 deletions src/vogleditor/vogleditor_qsettings.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "vogleditor_qsettings.h"
#include "vogl_common.h"
#include "fix_x11.h"
#include "vogl_file_utils.h"

// declared as extern in header
Expand Down
1 change: 1 addition & 0 deletions src/vogleditor/vogleditor_snapshotitem.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

// external classes (could be predeclared)
#include "vogl_common.h"
#include "fix_x11.h"
#include "vogleditor_gl_state_snapshot.h"

// base class for items that might have a snapshot
Expand Down
1 change: 1 addition & 0 deletions src/vogleditor/vogleditor_timelineitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

#include "vogleditor_timelineitem.h"
#include "vogl_common.h"
#include "fix_x11.h"

// Timeline root (fullspan)
vogleditor_timelineItem::vogleditor_timelineItem(double begin, double end)
Expand Down
1 change: 1 addition & 0 deletions src/vogleditor/vogleditor_tracereplayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define VOGLEDITOR_TRACEREPLAYER_H

#include "vogl_common.h"
#include "fix_x11.h"
#include "vogl_replay_window.h"

class vogl_gl_replayer;
Expand Down