⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simplegl.h

📁 GLSL tutorial with sourcecode
💻 H
字号:
#ifndef SIMPLE_GL_H
#define SIMPLE_GL_H

#include <iostream>
#include <string>
#include <sstream>
#include <fstream>
#include "aGLSL.h"

using namespace std;

void begin2d(float x, float y);
void end2d(void);
void mcDrawString(float x, float y, stringstream& stream);
void createTexture(char* data, GLuint* num);
char* LoadTexture(char* filename, int width=256, int nbytes=4);

void DefaultLighting(void);
aShaderObject* DefaultShaderSetup(char* vertex, char* fragment);
void DefaultCleanup(void);


//define a custom keyboard function, receiving ASCII keys:
//#define CUSTOM_KEYBOARD_FUNCTION(key) AppKeyboard(key)

//define a custom mouse event function, receiving x and y coords and button state
//x,y are integer coordinates and button is a bool, true if a button is pressed)
//#define CUSTOM_MOUSE_FUNCTION(x,y,button) AppMouse(x,y,button)

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -