-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.c
32 lines (24 loc) · 1.04 KB
/
plugin.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/**
* Hei Platform Library
* Copyright (C) 2017-2021 Mark E Sowden <hogsy@oldtimes-software.com>
* This software is licensed under MIT. See LICENSE for more details.
*/
#include "plugin.h"
static PLGDriverDescription pluginDesc = {
.identifier = "glide",
.description = "3dfx Glide Graphics Driver.",
.driverVersion = { 0, 0, 1 },
.coreInterfaceVersion = { PL_PLUGIN_INTERFACE_VERSION_MAJOR, PL_PLUGIN_INTERFACE_VERSION_MINOR },
.graphicsInterfaceVersion = { PLG_INTERFACE_VERSION_MAJOR, PLG_INTERFACE_VERSION_MINOR },
};
const PLGDriverExportTable *gInterface = NULL;
PL_EXPORT const PLGDriverDescription *QueryGraphicsDriver( void ) {
return &pluginDesc;
}
int glLogLevel;
PL_EXPORT const PLGDriverImportTable *InitializeGraphicsDriver( const PLGDriverExportTable *functionTable ) {
gInterface = functionTable;
glLogLevel = gInterface->core->AddLogLevel( "plugin/glide", PLColourRGB( 255, 255, 255 ), true );
const PLGDriverImportTable *DrvGlide_GetImportTable( void );
return DrvGlide_GetImportTable();
}