mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 11:28:56 +00:00
[Lib] Deleted unused header files.
This commit is contained in:
parent
a57b8e17a8
commit
a637f1e883
172
lib/gameos.h
172
lib/gameos.h
@ -1,172 +0,0 @@
|
||||
/*
|
||||
* Descent 3
|
||||
* Copyright (C) 2024 Parallax Software
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
--- HISTORICAL COMMENTS FOLLOW ---
|
||||
|
||||
* $Logfile: /DescentIII/Main/lib/gameos.h $
|
||||
* $Revision: 3 $
|
||||
* $Date: 7/28/99 3:24p $
|
||||
* $Author: Kevin $
|
||||
*
|
||||
* Operating system management library
|
||||
*
|
||||
* $Log: /DescentIII/Main/lib/gameos.h $
|
||||
*
|
||||
* 3 7/28/99 3:24p Kevin
|
||||
* Mac
|
||||
*
|
||||
* 2 5/10/99 10:53p Ardussi
|
||||
* changes to compile on Mac
|
||||
*
|
||||
* 17 3/14/97 6:11 PM Jeremy
|
||||
* added get_user_name to osDatabase
|
||||
*
|
||||
* 16 3/14/97 4:15p Matt
|
||||
* Changed title of OutrageMessageBox() dialogs
|
||||
*
|
||||
* 15 3/13/97 11:04a Samir
|
||||
* Took out file functions. Kept console because the OS must initialize
|
||||
* the console before doing anything else to report messages.
|
||||
*
|
||||
* 14 3/10/97 11:13a Samir
|
||||
* Changes made to reflect deletion of OSDebug class from system
|
||||
*
|
||||
* 13 3/04/97 1:00p Samir
|
||||
* Fixed return type prototype errors.
|
||||
*
|
||||
* 12 3/04/97 12:54p Samir
|
||||
* Added type constants for message boxes.
|
||||
*
|
||||
* 11 3/03/97 3:12p Samir
|
||||
* Fixed GetWorkingDir prototype.
|
||||
*
|
||||
* 10 3/03/97 1:16p Samir
|
||||
* Added some file operations
|
||||
*
|
||||
* 9 2/28/97 11:04a Samir
|
||||
* Use a generic structure to pass in init info instead of params.
|
||||
*
|
||||
* 8 2/27/97 5:26 PM Jeremy
|
||||
* removed mac\oemac_os.h and replaced it with #include "oemac_os.h"
|
||||
* because the mac compiler doesn't need the path and the "\" doesn't work
|
||||
* anyway. mac path delimiter is a ":"
|
||||
*
|
||||
* 7 2/26/97 7:36p Samir
|
||||
* include oexxx_os.h from mac or win directories.
|
||||
*
|
||||
* 6 2/26/97 7:05p Samir
|
||||
* debug_break function in osObject.
|
||||
*
|
||||
* 5 2/04/97 5:03p Samir
|
||||
* Adjusted create to take out code_write parm
|
||||
*
|
||||
* 4 1/30/97 6:07p Samir
|
||||
* A more object oriented approach to our OS library
|
||||
*
|
||||
* $NoKeywords: $
|
||||
*/
|
||||
#ifndef GAMEOS_H
|
||||
#define GAMEOS_H
|
||||
#include "pstypes.h"
|
||||
struct gameos_packet {
|
||||
int code;
|
||||
unsigned time_stamp;
|
||||
};
|
||||
|
||||
const int GAMEOS_QUIT = 1, // This gameos object is shutting down
|
||||
GAMEOS_IDLE = 2, // currently idle.
|
||||
GAMEOS_UNKNOWN = 255; // Unknown message
|
||||
/* class osObject
|
||||
contains code to initialize all the OS dependent info and structures for an application
|
||||
this class should be the parent of a class created by the programmer to match the
|
||||
platform he's developing on. i.e. there should be a osWinObject for the Win32 version,
|
||||
and must have all the functionality of this base Class.
|
||||
*/
|
||||
class osObject {
|
||||
protected:
|
||||
bool m_Init, m_Created; // did we initialize this object or created and init.
|
||||
osObject *m_ParentOS; // determines if this is a parent process
|
||||
virtual void os_init() = 0; // os specific initialization
|
||||
|
||||
public:
|
||||
osObject() {
|
||||
m_Init = 0;
|
||||
m_Created = 0;
|
||||
};
|
||||
virtual ~osObject(){};
|
||||
|
||||
// parent_os is the osObject that is the parent of this new object.
|
||||
// info is a device dependent structure passed in using device independent parms.
|
||||
virtual void init(osObject *parent_os, void *info) = 0;
|
||||
virtual bool create(osObject *parent_os, void *info) = 0;
|
||||
// returns a packet with a code telling us either to quit or that we are in some
|
||||
// sort of idle state, which means we perform tasks like a game.
|
||||
virtual gameos_packet *defer() = 0; // defers game operation to OS.
|
||||
virtual void get_info(void *info, int size_str) = 0;
|
||||
};
|
||||
/* osDatabase
|
||||
to get info about the application from an OS managed database (or a custom info file)
|
||||
Again, this class should be the parent of a OS specific class like osWinDatabase, for instance.
|
||||
*/
|
||||
class osDatabase {
|
||||
public:
|
||||
osDatabase(){};
|
||||
virtual ~osDatabase(){};
|
||||
virtual bool init() = 0;
|
||||
// creates an empty classification or structure where you can store information
|
||||
virtual bool create_record(const char *pathname) = 0;
|
||||
// set current database focus to a particular record
|
||||
virtual bool lookup_record(const char *pathname) = 0;
|
||||
// read either an integer or string from the current record
|
||||
virtual bool read(const char *label, char *entry, int *entrylen) = 0;
|
||||
virtual bool read(const char *label, int *entry) = 0;
|
||||
// write either an integer or string to a record.
|
||||
virtual bool write(const char *label, char *entry, int entrylen) = 0;
|
||||
virtual bool write(const char *label, int *entry) = 0;
|
||||
|
||||
// get the current user's name from the os
|
||||
virtual void get_user_name(char *buffer, size_t *size) = 0;
|
||||
};
|
||||
// Data structures
|
||||
struct os_date {
|
||||
uint16_t year; // 1-65535 A.D. (or C.E.)
|
||||
uint8_t month;
|
||||
uint8_t day;
|
||||
uint8_t hour;
|
||||
uint8_t min;
|
||||
uint8_t sec;
|
||||
uint8_t pad; // to keep dword aligned
|
||||
};
|
||||
// ---------------------------------------------------------------------------
|
||||
// Debug system functions
|
||||
// ---------------------------------------------------------------------------
|
||||
#define OSMBOX_OK 1
|
||||
#define OSMBOX_YESNO 2
|
||||
bool os_ErrorBox(const char *str); // displays an error message on the screen
|
||||
int os_MessageBox(int type, const char *title, const char *str);
|
||||
bool os_ConsoleInit();
|
||||
void os_ConsoleOpen(int n, int row, int col, int width, int height, char *title);
|
||||
void os_ConsoleClose(int n);
|
||||
void os_ConsolePrintf(int n, char *format, ...);
|
||||
void os_ConsolePrintf(int n, int row, int col, char *format, ...);
|
||||
// ---------------------------------------------------------------------------
|
||||
// Operating system includes
|
||||
// ---------------------------------------------------------------------------
|
||||
// #if defined(WIN32)
|
||||
// #include "win\oewin_os.h"
|
||||
// #endif
|
||||
#endif
|
@ -1,143 +0,0 @@
|
||||
/*
|
||||
* Descent 3
|
||||
* Copyright (C) 2024 Parallax Software
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __LNXDRAW_H_
|
||||
#define __LNXDRAW_H_
|
||||
|
||||
// #include "dyna_xwin.h"
|
||||
// #include "dyna_xext.h"
|
||||
|
||||
#include <SDL.h>
|
||||
|
||||
struct LnxVideoDesc {
|
||||
// Display *dDisplay; // Which X-Windows Display to use
|
||||
int nScreen; // Which X-Windows screen to use
|
||||
};
|
||||
|
||||
struct LnxWindowDesc {
|
||||
uint32_t bpp; // bits per pixel.
|
||||
uint32_t dwFlags; // flags for window
|
||||
uint32_t dwWidth; // width of the created window
|
||||
uint32_t dwHeight; // height of the created window
|
||||
uint32_t dwXPos; // Top-Left X position
|
||||
uint32_t dwYPos; // Top-Left Y position
|
||||
|
||||
char *lpszName; // Window name
|
||||
// Window *pre_created_window; // Window already created
|
||||
// XVisualInfo pre_created_visinfo;
|
||||
};
|
||||
// #define LNXDRAWF_USEPRECREATEDWIN 0x01
|
||||
|
||||
struct LnxWindow {
|
||||
// XSizeHints *lpSizeHints;
|
||||
// XWMHints *lpWmHints;
|
||||
// XClassHint *lpClassHints;
|
||||
// Visual *lpXvisual;
|
||||
// Window wWindow;
|
||||
SDL_Surface *surface;
|
||||
// bool bHaveSharedMemory;
|
||||
bool bLocked;
|
||||
// bool WindowPreCreated;
|
||||
// XVisualInfo viVisualInfo;
|
||||
// Colormap cmColorMap;
|
||||
uint8_t *lpBuffer;
|
||||
// GC m_GC;
|
||||
// XImage *lpImage;
|
||||
// XShmSegmentInfo shmInfo;
|
||||
uint32_t dwWidth; // width of the created window
|
||||
uint32_t dwHeight; // height of the created window
|
||||
bool fullScreen;
|
||||
|
||||
uint32_t lock_x, lock_y, lock_w, lock_h;
|
||||
uint8_t *lock_ptr;
|
||||
};
|
||||
|
||||
//////////////////////
|
||||
// LnxDraw_InitVideo
|
||||
//////////////////////
|
||||
// Initializes the Linux video system (for X-Windows)
|
||||
//
|
||||
// Returns:
|
||||
// 0 : no error
|
||||
// -1 : invalid parameter
|
||||
// -2 : already initialized
|
||||
int LnxDraw_InitVideo(LnxVideoDesc *ldesc);
|
||||
|
||||
/////////////////////////
|
||||
// LnxDraw_CreateWindow
|
||||
/////////////////////////
|
||||
|
||||
// Creates and displays a window
|
||||
//
|
||||
// Returns:
|
||||
// 0 : no error (handle in lphandle)
|
||||
// -1 : invalid parameter
|
||||
// -2 : Display not opened
|
||||
// -3 : Out of memory
|
||||
int LnxDraw_CreateWindow(LnxWindowDesc *ldesc, LnxWindow **lphandle);
|
||||
|
||||
//////////////////////////
|
||||
// LnxDraw_DestroyWindow
|
||||
//////////////////////////
|
||||
// Closes and deletes a window
|
||||
//
|
||||
// Returns:
|
||||
// 0 : no error
|
||||
// -1 : invalid parameter
|
||||
int LnxDraw_DestroyWindow(LnxWindow *handle);
|
||||
|
||||
////////////////////////
|
||||
// LnxDraw_LockSurface
|
||||
////////////////////////
|
||||
// Locks the window surface, giving you a pointer to write data to
|
||||
//
|
||||
// Returns:
|
||||
// true : success
|
||||
// false : error
|
||||
bool LnxDraw_LockSurface(LnxWindow *wnd, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2,
|
||||
uint8_t **ptr, int *pitch);
|
||||
|
||||
//////////////////////////
|
||||
// LnxDraw_UnlockSurface
|
||||
//////////////////////////
|
||||
// Unlocks the window surface, blitting the buffer
|
||||
//
|
||||
void LnxDraw_UnlockSurface(LnxWindow *wnd, uint8_t *ptr);
|
||||
|
||||
////////////////////////////
|
||||
/// LnxDraw_Blit
|
||||
////////////////////////////
|
||||
// Blits a buffer to the window
|
||||
//
|
||||
// Returns:
|
||||
// 0 : no error
|
||||
// -1 : invalid parameter
|
||||
// -2 : unknown error
|
||||
int LnxDraw_Blit(LnxWindow *wnd, uint8_t *ptr, uint32_t x, uint32_t y, uint32_t w, uint32_t h);
|
||||
|
||||
////////////////////////
|
||||
// LnxDraw_GetRGBMasks
|
||||
////////////////////////
|
||||
// Returns the RGB masks for the display
|
||||
//
|
||||
// Returns:
|
||||
// 0 : no error
|
||||
// -1 : invalid parameters
|
||||
int LnxDraw_GetRGBMasks(LnxWindow *wnd, uint32_t *r, uint32_t *g, uint32_t *b);
|
||||
|
||||
#endif
|
@ -1,158 +0,0 @@
|
||||
/*
|
||||
* Descent 3
|
||||
* Copyright (C) 2024 Parallax Software
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
--- HISTORICAL COMMENTS FOLLOW ---
|
||||
|
||||
* $Logfile: /DescentIII/Main/lib/linux/oelnx_os.h $
|
||||
* $Revision: 1.1.1.1 $
|
||||
* $Date: 2003/08/26 03:58:13 $
|
||||
* $Author: kevinb $
|
||||
*
|
||||
*
|
||||
* $Log: oelnx_os.h,v $
|
||||
* Revision 1.1.1.1 2003/08/26 03:58:13 kevinb
|
||||
* initial 1.5 import
|
||||
*
|
||||
*
|
||||
* 1 1/07/99 11:14p Jeff
|
||||
*
|
||||
* 3 5/15/97 1:48 AM Jeremy
|
||||
* added define of ASSERT macro to call debugger function, implemented
|
||||
* more parts of osMacDatabase in header, redefined max-filename,
|
||||
* directory-name lengths to be correct size
|
||||
*
|
||||
* 2 5/9/97 7:15 PM Jeremy
|
||||
* redefinition of object database class and #defines of some constants
|
||||
* from the dos world
|
||||
*
|
||||
* 1 2/26/97 6:57 PM Jeremy
|
||||
* Mac OS Specific header/initialization/debug/database stuff
|
||||
*
|
||||
* $NoKeywords: $
|
||||
*/
|
||||
|
||||
#ifndef OEMAC_OS_H
|
||||
#define OEMAC_OS_H
|
||||
|
||||
#define ASSERT(x) \
|
||||
do { \
|
||||
if (!(x)) \
|
||||
debug_break(); \
|
||||
} while (0)
|
||||
|
||||
// ANSI Headers
|
||||
#include <string.h>
|
||||
|
||||
// Macintosh Headers
|
||||
#include <Files.h>
|
||||
|
||||
class osMacObject : public osObject {
|
||||
protected:
|
||||
virtual void os_init(void); // mac os specific initialization
|
||||
|
||||
public:
|
||||
osMacObject(void);
|
||||
virtual ~osMacObject(void); // mac os specific shutdown
|
||||
|
||||
// parent_os is the osObject that is the parent of this new object.
|
||||
// info is a device dependent structure passed in using device independent parms.
|
||||
virtual void init(osObject *parent_os, void *info);
|
||||
virtual bool create(osObject *parent_os, void *info);
|
||||
|
||||
// returns a packet with a code telling us either to quit or that we are in some
|
||||
// sort of idle state, which means we perform tasks like a game.
|
||||
virtual gameos_packet *defer(void); // defers game operation to OS.
|
||||
|
||||
virtual void get_info(void *info, int size_str);
|
||||
};
|
||||
|
||||
/* osDatabase
|
||||
to get info about the application from an OS managed database (or a custom info file)
|
||||
*/
|
||||
|
||||
class osMacDatabase : public osDatabase {
|
||||
public:
|
||||
osMacDatabase();
|
||||
virtual ~osMacDatabase();
|
||||
|
||||
virtual bool init();
|
||||
|
||||
// creates an empty classification or structure where you can store information
|
||||
virtual bool create_record(const char *pathname);
|
||||
|
||||
// set current database focus to a particular record
|
||||
virtual bool lookup_record(const char *pathname);
|
||||
|
||||
// read either an integer or string from the current record
|
||||
virtual bool read(const char *label, char *entry, int *entrylen);
|
||||
virtual bool read(const char *label, int *entry);
|
||||
|
||||
// write either an integer or string to a record.
|
||||
virtual bool write(const char *label, char *entry, int entrylen);
|
||||
virtual bool write(const char *label, int *entry);
|
||||
|
||||
// get the current user's name from the os
|
||||
virtual void get_user_name(char *buffer, size_t *size);
|
||||
|
||||
protected:
|
||||
// Additional Macintosh Functions, return true if successful
|
||||
virtual bool FillOutPrefsInfo(void);
|
||||
virtual bool InitPrefsFile(void);
|
||||
|
||||
enum { kMacDatabaseResourceType = 'DatB' };
|
||||
virtual bool WriteDataToResourceFork(const char *label, void *entry, int entrylen);
|
||||
virtual bool ReadDataFromResourceFork(const char *label, void *entry, int *entrylen);
|
||||
|
||||
protected:
|
||||
bool mInitted;
|
||||
|
||||
OSType mAppSignature;
|
||||
|
||||
// Prefs information
|
||||
Str255 mPrefsFileName;
|
||||
Str255 mPrefsFolderName;
|
||||
OSType mPrefsFileType;
|
||||
FSSpec mPrefsFileSpec;
|
||||
int16_t mPrefsFileRefNum;
|
||||
};
|
||||
|
||||
/*******************************************
|
||||
Utility functions specific to the Mac OS
|
||||
*******************************************/
|
||||
|
||||
int stricmp(const char *s1, const char *s2);
|
||||
int strnicmp(const char *s1, const char *s2, int n);
|
||||
|
||||
/*******************************************
|
||||
Constants/#defines functions specific to the Mac OS
|
||||
*******************************************/
|
||||
#define _MAX_DIR 32
|
||||
#define _MAX_FNAME 32
|
||||
|
||||
// fakeouts from windows/intel
|
||||
#define _MAX_EXT 4
|
||||
#define _MAX_DRIVE 4
|
||||
|
||||
// Boolean values
|
||||
#ifndef true
|
||||
#define true 1
|
||||
#endif
|
||||
#ifndef false
|
||||
#define false 0
|
||||
#endif
|
||||
|
||||
#endif
|
181
lib/rend_d3d.h
181
lib/rend_d3d.h
@ -1,181 +0,0 @@
|
||||
/*
|
||||
* Descent 3
|
||||
* Copyright (C) 2024 Parallax Software
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef REND_D3D_H
|
||||
#define REND_D3D_H
|
||||
|
||||
#include "renderer.h"
|
||||
#include "3d.h"
|
||||
|
||||
class oeApplication;
|
||||
|
||||
// Starts up glide
|
||||
int d3d_Init(oeApplication *app, renderer_preferred_state *pref_state);
|
||||
|
||||
// Closes down glide
|
||||
void d3d_Close();
|
||||
|
||||
// The main drawing function...draws a flat/textured/gouraud polygon
|
||||
void d3d_DrawPolygon(int, g3Point **, int, int);
|
||||
|
||||
void d3d_SetFlatColor(ddgr_color color);
|
||||
|
||||
// Ends a frame
|
||||
void d3d_EndFrame();
|
||||
|
||||
// Flips the screen
|
||||
void d3d_Flip();
|
||||
|
||||
// Does setup for a new frame
|
||||
void d3d_BeginFrame(int, int, int, int, int);
|
||||
|
||||
// Tells glide what kind of texturing (linear/perspective) we want
|
||||
void d3d_SetTextureType(texture_type);
|
||||
|
||||
// Sets the lighting state of glide
|
||||
void d3d_SetLightingState(light_state state);
|
||||
|
||||
// Sets the glide color model (either rgb or mono)
|
||||
void d3d_SetColorModel(color_model state);
|
||||
|
||||
// Sets the state of bilinear filtering for our textures
|
||||
void d3d_SetFiltering(int8_t state);
|
||||
|
||||
// Sets the state of zbuffering to on or off
|
||||
void d3d_SetZBufferState(int8_t state);
|
||||
|
||||
// Sets the near/far z values for zbuffering
|
||||
void d3d_SetZValues(float nearz, float farz);
|
||||
|
||||
// Sets a bitmap as a lightmap to rendered on top of the next texture map
|
||||
// a -1 value indicates no lighting map
|
||||
void d3d_SetLightingMap(int handle);
|
||||
|
||||
// Clears the display to a specified color
|
||||
void d3d_ClearScreen(ddgr_color color);
|
||||
|
||||
// Fills a rectangle on the display
|
||||
void d3d_FillRect(ddgr_color color, int x1, int y1, int x2, int y2);
|
||||
|
||||
// Sets a pixel on the display
|
||||
void d3d_SetPixel(ddgr_color color, int x, int y);
|
||||
|
||||
// Sets the near and far plane of fog
|
||||
void d3d_SetFogBorders(float nearz, float farz);
|
||||
|
||||
// Sets the fog state to on or off
|
||||
void d3d_SetFogState(int8_t state);
|
||||
|
||||
// Draws a 2d line
|
||||
void d3d_DrawLine(int x1, int y1, int x2, int y2);
|
||||
|
||||
// sets fog color
|
||||
void d3d_SetFogColor(ddgr_color fogcolor);
|
||||
|
||||
// sets the alpha type
|
||||
void d3d_SetAlphaType(int8_t);
|
||||
|
||||
// Sets the constant alpha value
|
||||
void d3d_SetAlphaValue(uint8_t val);
|
||||
|
||||
// Sets the overall alpha scale factor (all alpha values are scaled by this value)
|
||||
// usefull for motion blur effect
|
||||
void d3d_SetAlphaFactor(float val);
|
||||
|
||||
// Returns the current Alpha factor
|
||||
float d3d_GetAlphaFactor(void);
|
||||
|
||||
// Sets the glide wrapping type
|
||||
void d3d_SetWrapType(wrap_type val);
|
||||
|
||||
// Takes a screenshot of the frontbuffer and puts it into the passed bitmap handle
|
||||
void d3d_Screenshot(int bm_handle);
|
||||
|
||||
// Sets write mask for depth buffer
|
||||
void d3d_SetZBufferWriteMask(int state);
|
||||
|
||||
// Locks the linear frame buffer for application access
|
||||
void d3d_GetLFBLock(renderer_lfb *lfb);
|
||||
|
||||
// Releases the previous LFB lock
|
||||
void d3d_ReleaseLFBLock(renderer_lfb *lfb);
|
||||
|
||||
void d3d_GetProjectionParameters(int *width, int *height);
|
||||
float d3d_GetAspectRatio();
|
||||
|
||||
// Draws a line using the states set by the renderer lib
|
||||
void d3d_DrawSpecialLine(g3Point *p0, g3Point *p1);
|
||||
|
||||
void d3d_SetMipState(int8_t);
|
||||
|
||||
// Sets up a some global preferences for glide
|
||||
int d3d_SetPreferredState(renderer_preferred_state *pref_state);
|
||||
|
||||
// Sets the gamma correction value
|
||||
void d3d_SetGammaValue(float val);
|
||||
|
||||
// Gets the current state of the renderer
|
||||
void d3d_GetRenderState(rendering_state *rstate);
|
||||
|
||||
// Sets the resolution that glide uses
|
||||
void d3d_SetResolution(int width, int height);
|
||||
|
||||
// Sets the coplanar z bias for rendered polygons
|
||||
void d3d_SetCoplanarPolygonOffset(float factor);
|
||||
|
||||
// Creates a on the video card if needed
|
||||
void d3d_PreUploadTextureToCard(int handle, int map_type);
|
||||
|
||||
// Evicts local texture memory
|
||||
void d3d_FreePreUploadedTexture(int handle, int map_type);
|
||||
|
||||
// Returns a string describing the passed in error
|
||||
const char *d3d_ErrorString(int error);
|
||||
|
||||
// Takes a screenshot of the frontbuffer and puts it into the passed bitmap handle
|
||||
void d3d_Screenshot(int bm_handle);
|
||||
|
||||
// Returns 1 if the renderer supports bumpmapping
|
||||
int d3d_SupportsBumpmapping();
|
||||
|
||||
// Clears the zbuffer
|
||||
void d3d_ClearZBuffer();
|
||||
|
||||
// Clears the texture cache
|
||||
void d3d_ResetCache();
|
||||
|
||||
// Creates or destroys a linear framebuffer lock
|
||||
void d3d_GetLFBLock(renderer_lfb *lfb);
|
||||
void d3d_ReleaseLFBLock(renderer_lfb *lfb);
|
||||
|
||||
// Takes a bitmap and blits it to the screen using linear frame buffer stuff
|
||||
// X and Y are the destination X,Y
|
||||
void d3d_CopyBitmapToFramebuffer(int bm_handle, int x, int y);
|
||||
|
||||
// Gets a renderer ready for a framebuffer copy, or stops a framebuffer copy
|
||||
void d3d_SetFrameBufferCopyState(bool state);
|
||||
|
||||
#if defined(WIN32)
|
||||
// returns directdraw object
|
||||
void *d3d_DirectDrawObj(void **frontsurf, void **backsurf);
|
||||
#endif
|
||||
|
||||
// returns rendering statistics for the frame
|
||||
void d3d_GetStatistics(tRendererStats *stats);
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user