opengl: Pointer, newline cleanup, no functional change

* Clean up pointer positions
* Clean up function line returns
This commit is contained in:
Alexander von Gluck IV
2012-01-26 09:47:08 -06:00
parent a42877a6e4
commit a80293e0cf
6 changed files with 91 additions and 83 deletions
+16 -8
View File
@@ -48,49 +48,57 @@ class BGLDispatcher
// Inlines methods // Inlines methods
inline void BGLDispatcher::SetCurrentContext(void * context) inline void
BGLDispatcher::SetCurrentContext(void* context)
{ {
_glapi_set_context(context); _glapi_set_context(context);
} }
inline void * BGLDispatcher::CurrentContext() inline void*
BGLDispatcher::CurrentContext()
{ {
return _glapi_get_context(); return _glapi_get_context();
} }
inline struct _glapi_table * BGLDispatcher::Table() inline struct _glapi_table*
BGLDispatcher::Table()
{ {
return _glapi_get_dispatch(); return _glapi_get_dispatch();
} }
inline uint32 BGLDispatcher::TableSize() inline uint32
BGLDispatcher::TableSize()
{ {
return _glapi_get_dispatch_table_size(); return _glapi_get_dispatch_table_size();
} }
inline const _glapi_proc BGLDispatcher::operator[](const char *functionName) inline const _glapi_proc
BGLDispatcher::operator[](const char* functionName)
{ {
return _glapi_get_proc_address(functionName); return _glapi_get_proc_address(functionName);
} }
inline const char * BGLDispatcher::operator[](uint32 offset) inline const char*
BGLDispatcher::operator[](uint32 offset)
{ {
return _glapi_get_proc_name((GLuint) offset); return _glapi_get_proc_name((GLuint) offset);
} }
inline const _glapi_proc BGLDispatcher::AddressOf(const char *functionName) inline const _glapi_proc
BGLDispatcher::AddressOf(const char* functionName)
{ {
return _glapi_get_proc_address(functionName); return _glapi_get_proc_address(functionName);
} }
inline uint32 BGLDispatcher::OffsetOf(const char *functionName) inline uint32
BGLDispatcher::OffsetOf(const char* functionName)
{ {
return (uint32) _glapi_get_proc_offset(functionName); return (uint32) _glapi_get_proc_offset(functionName);
} }
+2 -1
View File
@@ -26,7 +26,8 @@ extern "C" status_t _kern_get_safemode_option(const char *parameter,
GLRendererRoster::GLRendererRoster(BGLView* view, ulong options) GLRendererRoster::GLRendererRoster(BGLView* view, ulong options)
: fNextID(0), :
fNextID(0),
fView(view), fView(view),
fOptions(options), fOptions(options),
fSafeMode(false), fSafeMode(false),
+3 -4
View File
@@ -479,8 +479,6 @@ BGLView::BGLView(BRect rect, char* name, ulong resizingMode, ulong mode,
#if 0 #if 0
// TODO: implement BGLScreen class... // TODO: implement BGLScreen class...
@@ -579,7 +577,8 @@ BHandler *
BGLScreen::ResolveSpecifier(BMessage* msg, int32 index, BMessage* specifier, BGLScreen::ResolveSpecifier(BMessage* msg, int32 index, BMessage* specifier,
int32 form, const char* property) int32 form, const char* property)
{ {
return BWindowScreen::ResolveSpecifier(msg, index, specifier, form, property); return BWindowScreen::ResolveSpecifier(msg, index, specifier,
form, property);
} }
@@ -600,9 +599,9 @@ void BGLScreen::_ReservedGLScreen5() {}
void BGLScreen::_ReservedGLScreen6() {} void BGLScreen::_ReservedGLScreen6() {}
void BGLScreen::_ReservedGLScreen7() {} void BGLScreen::_ReservedGLScreen7() {}
void BGLScreen::_ReservedGLScreen8() {} void BGLScreen::_ReservedGLScreen8() {}
#endif #endif
const char* color_space_name(color_space space) const char* color_space_name(color_space space)
{ {
#define C2N(a) case a: return #a #define C2N(a) case a: return #a