refactoring
This commit is contained in:
parent
95afd87656
commit
baaa87b18f
62 changed files with 7231 additions and 6636 deletions
40
inc/render_ogl.h
Normal file
40
inc/render_ogl.h
Normal file
|
@ -0,0 +1,40 @@
|
|||
#ifndef RENDER_OGL_H
|
||||
#define RENDER_OGL_H
|
||||
|
||||
#include <windows.h>
|
||||
#include "opengl_utils.h"
|
||||
|
||||
#define TEXTURE_COUNT 4
|
||||
|
||||
typedef struct ogl_renderer
|
||||
{
|
||||
HGLRC context;
|
||||
GLuint main_program;
|
||||
GLuint scale_program;
|
||||
BOOL got_error;
|
||||
int surface_tex_width;
|
||||
int surface_tex_height;
|
||||
int* surface_tex;
|
||||
GLenum surface_format;
|
||||
GLenum surface_type;
|
||||
GLuint surface_tex_ids[TEXTURE_COUNT];
|
||||
GLuint palette_tex_ids[TEXTURE_COUNT];
|
||||
float scale_w;
|
||||
float scale_h;
|
||||
GLint main_tex_coord_attr_loc;
|
||||
GLint main_vertex_coord_attr_loc;
|
||||
GLuint main_vbos[3];
|
||||
GLuint main_vao;
|
||||
GLint frame_count_uni_loc;
|
||||
GLuint frame_buffer_id;
|
||||
GLuint frame_buffer_tex_id;
|
||||
GLuint scale_vbos[3];
|
||||
GLuint scale_vao;
|
||||
BOOL use_opengl;
|
||||
BOOL adjust_alignment;
|
||||
BOOL filter_bilinear;
|
||||
} ogl_renderer;
|
||||
|
||||
DWORD WINAPI ogl_render_main(void);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue