gfx: ddraw push rs
parent
4eec9cd8c4
commit
2ebaa545c0
|
@ -387227,10 +387227,10 @@ void ddraw_flush_projview(mat44 proj, mat44 view) {
|
||||||
for( int i = 0; i < 3; ++i ) { // [0] thin, [1] thick, [2] points
|
for( int i = 0; i < 3; ++i ) { // [0] thin, [1] thick, [2] points
|
||||||
GLenum mode = i < 2 ? GL_LINES : GL_POINTS;
|
GLenum mode = i < 2 ? GL_LINES : GL_POINTS;
|
||||||
dd_rs.line_width = (i == 1 ? 1 : 0.3); // 0.625);
|
dd_rs.line_width = (i == 1 ? 1 : 0.3); // 0.625);
|
||||||
|
renderstate_apply(&dd_rs);
|
||||||
for each_map(dd_lists[dd_ontop][i], unsigned, rgb, array(vec3), list) {
|
for each_map(dd_lists[dd_ontop][i], unsigned, rgb, array(vec3), list) {
|
||||||
int count = array_count(list);
|
int count = array_count(list);
|
||||||
if(!count) continue;
|
if(!count) continue;
|
||||||
renderstate_apply(&dd_rs);
|
|
||||||
// color
|
// color
|
||||||
vec3 rgbf = {((rgb>>0)&255)/255.f,((rgb>>8)&255)/255.f,((rgb>>16)&255)/255.f};
|
vec3 rgbf = {((rgb>>0)&255)/255.f,((rgb>>8)&255)/255.f,((rgb>>16)&255)/255.f};
|
||||||
glUniform3fv(dd_u_color, GL_TRUE, &rgbf.x);
|
glUniform3fv(dd_u_color, GL_TRUE, &rgbf.x);
|
||||||
|
|
|
@ -90,10 +90,10 @@ void ddraw_flush_projview(mat44 proj, mat44 view) {
|
||||||
for( int i = 0; i < 3; ++i ) { // [0] thin, [1] thick, [2] points
|
for( int i = 0; i < 3; ++i ) { // [0] thin, [1] thick, [2] points
|
||||||
GLenum mode = i < 2 ? GL_LINES : GL_POINTS;
|
GLenum mode = i < 2 ? GL_LINES : GL_POINTS;
|
||||||
dd_rs.line_width = (i == 1 ? 1 : 0.3); // 0.625);
|
dd_rs.line_width = (i == 1 ? 1 : 0.3); // 0.625);
|
||||||
|
renderstate_apply(&dd_rs);
|
||||||
for each_map(dd_lists[dd_ontop][i], unsigned, rgb, array(vec3), list) {
|
for each_map(dd_lists[dd_ontop][i], unsigned, rgb, array(vec3), list) {
|
||||||
int count = array_count(list);
|
int count = array_count(list);
|
||||||
if(!count) continue;
|
if(!count) continue;
|
||||||
renderstate_apply(&dd_rs);
|
|
||||||
// color
|
// color
|
||||||
vec3 rgbf = {((rgb>>0)&255)/255.f,((rgb>>8)&255)/255.f,((rgb>>16)&255)/255.f};
|
vec3 rgbf = {((rgb>>0)&255)/255.f,((rgb>>8)&255)/255.f,((rgb>>16)&255)/255.f};
|
||||||
glUniform3fv(dd_u_color, GL_TRUE, &rgbf.x);
|
glUniform3fv(dd_u_color, GL_TRUE, &rgbf.x);
|
||||||
|
|
|
@ -21767,10 +21767,10 @@ void ddraw_flush_projview(mat44 proj, mat44 view) {
|
||||||
for( int i = 0; i < 3; ++i ) { // [0] thin, [1] thick, [2] points
|
for( int i = 0; i < 3; ++i ) { // [0] thin, [1] thick, [2] points
|
||||||
GLenum mode = i < 2 ? GL_LINES : GL_POINTS;
|
GLenum mode = i < 2 ? GL_LINES : GL_POINTS;
|
||||||
dd_rs.line_width = (i == 1 ? 1 : 0.3); // 0.625);
|
dd_rs.line_width = (i == 1 ? 1 : 0.3); // 0.625);
|
||||||
|
renderstate_apply(&dd_rs);
|
||||||
for each_map(dd_lists[dd_ontop][i], unsigned, rgb, array(vec3), list) {
|
for each_map(dd_lists[dd_ontop][i], unsigned, rgb, array(vec3), list) {
|
||||||
int count = array_count(list);
|
int count = array_count(list);
|
||||||
if(!count) continue;
|
if(!count) continue;
|
||||||
renderstate_apply(&dd_rs);
|
|
||||||
// color
|
// color
|
||||||
vec3 rgbf = {((rgb>>0)&255)/255.f,((rgb>>8)&255)/255.f,((rgb>>16)&255)/255.f};
|
vec3 rgbf = {((rgb>>0)&255)/255.f,((rgb>>8)&255)/255.f,((rgb>>16)&255)/255.f};
|
||||||
glUniform3fv(dd_u_color, GL_TRUE, &rgbf.x);
|
glUniform3fv(dd_u_color, GL_TRUE, &rgbf.x);
|
||||||
|
|
Loading…
Reference in New Issue