mirror of
https://github.com/jenshemprich/MacGLide.git
synced 2024-06-12 15:29:27 +00:00
Texture Plug-In mac specific files
This commit is contained in:
parent
f89b1bf386
commit
d9a1b82901
36
MacGLide Textures Plug-In/Mac/MacTexturesPlugin.cpp
Normal file
36
MacGLide Textures Plug-In/Mac/MacTexturesPlugin.cpp
Normal file
|
@ -0,0 +1,36 @@
|
|||
//**************************************************************
|
||||
//* MacGLide - Glide to OpenGL Wrapper
|
||||
//* http://macglide.sourceforge.net/
|
||||
//*
|
||||
//* Shared Library entry points
|
||||
//*
|
||||
//* MacGLideTexturesPlugin is OpenSource under LGPL license
|
||||
//* Originally made by Jens-Olaf Hemprich
|
||||
//**************************************************************
|
||||
|
||||
#include "MacTexturesPlugin.h"
|
||||
|
||||
OSErr __macglide_textures_plugin_initialize(struct CFragInitBlock* initBlkPtr)
|
||||
{
|
||||
OSErr err = __initialize((CFragInitBlock*) initBlkPtr);
|
||||
if (err == noErr)
|
||||
{
|
||||
#ifdef OGL_PROFILING
|
||||
err = ProfilerInit(collectSummary, bestTimeBase, 666, 666);
|
||||
assert(err == noErr);
|
||||
ProfilerSetStatus(1);
|
||||
#endif
|
||||
}
|
||||
return err;
|
||||
}
|
||||
|
||||
void __macglide_textures_plugin_terminate()
|
||||
{
|
||||
#ifdef OGL_PROFILING
|
||||
char* filename = "XTextures Plugin Profiler stats";
|
||||
filename[0] = strlen(&filename[1]);
|
||||
err = ProfilerDump(reinterpret_cast<unsigned char*>(filename));
|
||||
ProfilerTerm();
|
||||
#endif
|
||||
__terminate();
|
||||
}
|
19
MacGLide Textures Plug-In/Mac/MacTexturesPlugin.h
Normal file
19
MacGLide Textures Plug-In/Mac/MacTexturesPlugin.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
//**************************************************************
|
||||
//* MacGLide - Glide to OpenGL Wrapper
|
||||
//* http://macglide.sourceforge.net/
|
||||
//*
|
||||
//* Shared Library entry points
|
||||
//*
|
||||
//* MacGLideTexturesPlugin is OpenSource under LGPL license
|
||||
//* Originally made by Jens-Olaf Hemprich
|
||||
//**************************************************************
|
||||
|
||||
#pragma once
|
||||
|
||||
// library entry points
|
||||
#pragma export on
|
||||
extern "C" OSErr __macglide_textures_plugin_initialize(struct CFragInitBlock* initBlkPtr);
|
||||
extern "C" void __macglide_textures_plugin_terminate();
|
||||
extern "C" OSErr __initialize(struct CFragInitBlock* initBlkPtr);
|
||||
extern "C" void __terminate();
|
||||
#pragma export off
|
Loading…
Reference in New Issue
Block a user