improved glhr debugging
This commit is contained in:
parent
b6503f0059
commit
e898c61921
12
glhr.cpp
12
glhr.cpp
|
@ -208,6 +208,14 @@ EX glmatrix tmtogl(const transmatrix& T) {
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EX transmatrix gltotm(const glmatrix& T) {
|
||||||
|
transmatrix tmp;
|
||||||
|
for(int i=0; i<4; i++)
|
||||||
|
for(int j=0; j<4; j++)
|
||||||
|
tmp[i][j] = T[i][j];
|
||||||
|
return tmp;
|
||||||
|
}
|
||||||
|
|
||||||
EX glmatrix tmtogl_transpose(const transmatrix& T) {
|
EX glmatrix tmtogl_transpose(const transmatrix& T) {
|
||||||
glmatrix tmp;
|
glmatrix tmp;
|
||||||
for(int i=0; i<4; i++)
|
for(int i=0; i<4; i++)
|
||||||
|
@ -266,7 +274,7 @@ EX glmatrix translate(ld x, ld y, ld z) {
|
||||||
|
|
||||||
// /* shaders */
|
// /* shaders */
|
||||||
|
|
||||||
glmatrix projection;
|
EX glmatrix projection;
|
||||||
|
|
||||||
EX void new_projection() {
|
EX void new_projection() {
|
||||||
WITHSHADER({
|
WITHSHADER({
|
||||||
|
@ -319,7 +327,7 @@ EX int compileShader(int type, const string& s) {
|
||||||
GLint status;
|
GLint status;
|
||||||
|
|
||||||
if(debug_gl) {
|
if(debug_gl) {
|
||||||
println(hlog, "===\n");
|
println(hlog, "=== ", full_geometry_name(), " @ ", models::get_model_name(pmodel));
|
||||||
int lineno = 1;
|
int lineno = 1;
|
||||||
string cline = "";
|
string cline = "";
|
||||||
for(char c: s+"\n") {
|
for(char c: s+"\n") {
|
||||||
|
|
Loading…
Reference in New Issue