File: gropenglbmpman.h

package info (click to toggle)
freespace2 24.0.2%2Brepack-1
  • links: PTS, VCS
  • area: non-free
  • in suites: trixie
  • size: 43,188 kB
  • sloc: cpp: 583,107; ansic: 21,729; python: 1,174; sh: 464; makefile: 248; xml: 181
file content (38 lines) | stat: -rw-r--r-- 1,040 bytes parent folder | download | duplicates (4)
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
33
34
35
36
37
38
/*
 * Copyright (C) Volition, Inc. 1999.  All rights reserved.
 *
 * All source code herein is the property of Volition, Inc. You may not sell 
 * or otherwise commercially exploit the source or things you created based on the 
 * source.
 *
*/



#ifndef _OGL_BMPMAN_H
#define _OGL_BMPMAN_H

#include "bmpman/bmpman.h"
#include "globalincs/pstypes.h"

#include <glad/glad.h>

// anything API specific to freeing bm data
void gr_opengl_bm_free_data(bitmap_slot* entry, bool release);

// API specifics for creating a user bitmap
void gr_opengl_bm_create(bitmap_slot* entry);

// API specific init instructions
void gr_opengl_bm_init(bitmap_slot* entry);

// specific instructions for setting up the start of a page-in session
void gr_opengl_bm_page_in_start();

bool gr_opengl_bm_data(int handle, bitmap* bm);

void gr_opengl_bm_save_render_target(int slot);
int gr_opengl_bm_make_render_target(int n, int *width, int *height, int *bpp, int *mm_lvl, int flags);
int gr_opengl_bm_set_render_target(int n, int face);

#endif // _OGL_BMPMAN_H