/dports/games/hyperrogue/hyperrogue-12.0f/ |
H A D | shaders.cpp | 55 glhr::glmatrix s = glhr::id; in model_orientation_gl() 551 glhr::projection_multiply(glhr::scale(2, 1, 1)); in set_projection() 567 glhr::glmatrix M = glhr::ortho(x, y, 1); in set_projection() 579 glhr::glmatrix m = glhr::id; in set_projection() 588 glhr::glmatrix pp0 = glhr::id; in set_projection() 603 glhr::projection_multiply(glhr::tmtogl(swapz)); in set_projection() 627 glhr::projection_multiply(glhr::scale(1, -1, -1)); in set_projection() 650 glhr::projection_multiply(glhr::scale(1,1,0)); in set_projection() 666 glhr::glmatrix pp = glhr::id; in set_projection() 717 glhr::projection_multiply(glhr::scale(-1, 1, 1)); in set_projection() [all …]
|
H A D | drawing.cpp | 180 glhr::be_nontextured(); in glflush() 191 glhr::be_nontextured(); in glflush() 195 glhr::color2(line_color); in glflush() 662 glhr::be_textured(); in gldraw() 672 glhr::be_nontextured(); in gldraw() 673 glhr::vertices(v); in gldraw() 716 glhr::color2(color); in gldraw() 735 glhr::vertices(v); in gldraw() 749 glhr::color2(outline); in gldraw() 765 glhr::vertices(v1); in gldraw() [all …]
|
H A D | vr.cpp | 271 glhr::color2(col); in size_and_draw_ui_box() 272 glhr::set_depthtest(false); in size_and_draw_ui_box() 281 glhr::vertices(vs); in size_and_draw_ui_box() 323 glhr::textured_vertex tv; in get_render_model() 878 glhr::set_depthtest(false); in clear() 879 glhr::set_depthtest(true); in clear() 972 glhr::id_modelview(); in draw_eyes() 974 glhr::color2(0xFFFFFFFF); in draw_eyes() 988 glhr::prepare(tvx); in draw_eyes() 1490 glhr::id_modelview(); in render_controllers() [all …]
|
H A D | raycaster.cpp | 148 struct raycaster : glhr::GLprogram { 289 using glhr::to_glsl; in enable_raycaster() 1839 glhr::makevertex(-1, -1, 1), in cast() 1840 glhr::makevertex(-1, +1, 1), in cast() 1841 glhr::makevertex(+1, -1, 1), in cast() 1842 glhr::makevertex(-1, +1, 1), in cast() 1843 glhr::makevertex(+1, -1, 1), in cast() 1844 glhr::makevertex(+1, +1, 1) in cast() 2043 glhr::set_depthtest(false); in cast() 2045 glhr::set_depthtest(true); in cast() [all …]
|
H A D | sky.cpp | 51 vector<glhr::colored_vertex> skyvertices; 69 vector<glhr::colored_vertex> this_poly; in compute_skyvertices() 88 glhr::colored_vertex vs[prec+1][prec+1], vh[prec+1][prec+1]; in compute_skyvertices() 95 vs[y][x] = glhr::colored_vertex(h * skypoint, co.first); in compute_skyvertices() 96 vh[y][x] = glhr::colored_vertex(h * hellpoint, co.second); in compute_skyvertices() 215 glhr::colored_vertex cv[prec+1][prec+1]; in compute_skyvertices() 261 glhr::projection_multiply(glhr::tmtogl(xpush(-vid.ipd * global_projection/2))); in draw() 267 glhr::prepare(skyvertices); in draw() 268 glhr::set_fogbase(1.0 + 5 / sightranges[geometry]); in draw() 269 glhr::set_depthtest(model_needs_depth() && prio < PPR::SUPERLINE); in draw() [all …]
|
H A D | basegraph.cpp | 261 glhr::using_eyeshift = false; in eyewidth_translate() 262 if(ed) glhr::projection_multiply(glhr::translate(-ed * current_display->eyewidth(), 0, 0)); in eyewidth_translate() 360 glhr::set_depthwrite(true); in setGLProjection() 545 glhr::textured_vertex res; in charvertex() 993 glhr::be_nontextured(); 994 glhr::id_modelview(); 1006 glhr::vertices(glcoords); 1009 glhr::color2(fillcolor); 1013 glhr::color2(color); 1159 glhr::be_textured(); glhr::be_nontextured(); in apply_screen_settings() [all …]
|
H A D | glhr.cpp | 16 EX namespace glhr { namespace 84 #define WITHSHADER(x, y) if(glhr::noshaders) y else x 94 EX namespace glhr { namespace 461 glUniform1f(glhr::current_glprogram->uIndexSL, x); in set_index_sl() 465 glUniform1f(glhr::current_glprogram->uSV, x); in set_sv() 469 glUniform1i(glhr::current_glprogram->uIterations, steps); in set_sl_iterations() 473 glUniform1i(glhr::current_glprogram->tInvExpTable, INVERSE_EXP_BINDING); in set_solv_prec() 474 glUniform1f(glhr::current_glprogram->uPRECX, x); in set_solv_prec() 475 glUniform1f(glhr::current_glprogram->uPRECY, y); in set_solv_prec() 476 glUniform1f(glhr::current_glprogram->uPRECZ, z); in set_solv_prec() [all …]
|
H A D | textures.cpp | 410 mi.vertices.push_back(glhr::pointtogl(v[i])); in mapTextureTriangle() 412 mi.tvertices.push_back(glhr::pointtogl(texture_coordinates(tv[i]))); in mapTextureTriangle() 540 hyperpoint h = glhr::gltopoint(mi.vertices[i]); in apply() 634 tinf3.tvertices.push_back(glhr::pointtogl(texture_coordinates(h))); in finish_mapping() 683 vector<glhr::textured_vertex> rtver(4); 690 glhr::color2(0xFFFFFF20); in drawRawTexture() 706 glhr::id_modelview(); in drawRawTexture() 707 glhr::prepare(rtver); in drawRawTexture() 708 glhr::set_depthtest(false); in drawRawTexture()
|
H A D | usershapes.cpp | 70 utt.tvertices.push_back(glhr::makevertex(-1, factor, 0)); in pushShape()
|
H A D | fake-mobile.cpp | 129 glhr::init(); in main()
|
H A D | floorshapes.cpp | 1186 ftv.tvertices.push_back(glhr::makevertex(v[0], v[1], 0)); in draw_shape_for_texture() 1247 vector<glhr::colored_vertex> gv; in make_floor_textures_here() 1263 glhr::new_projection(); in make_floor_textures_here() 1264 glhr::id_modelview(); in make_floor_textures_here() 1265 glhr::prepare(gv); in make_floor_textures_here() 1266 glhr::set_depthtest(false); in make_floor_textures_here()
|
H A D | polygons.cpp | 77 ourshape.push_back(glhr::pointtogl(h)); in initPolyForGL() 79 glhr::store_in_buffer(ourshape); in initPolyForGL() 86 ourshape.push_back(glhr::pointtogl(hpc[isize(ourshape)])); in extra_vertices() 87 glhr::store_in_buffer(ourshape); in extra_vertices() 88 glhr::current_vertices = NULL; in extra_vertices()
|
H A D | rug.cpp | 1030 vector<glhr::ct_vertex> ct_array; 1032 vector<glhr::ct_vertex> cp_array; 1052 tinf.tvertices.push_back(glhr::pointtogl(point3(t.m[i]->x1, t.m[i]->y1, col))); in drawTriangle()
|
H A D | screenshot.cpp | 412 data.push_back(glhr::gltopoint(v)); in polygon() 558 println(f, " ", coord(glhr::gltopoint(d), 2), ","); in take() 2044 …lways3 || pmodel || rug::rugged || vid.wallmode < 2 || vid.monmode < 2 || glhr::noshaders || !vid.… in pick()
|
/dports/games/hyperrogue/hyperrogue-12.0f/hyperroid/app/src/main/jni/ |
H A D | hyper.cpp | 175 glhr::init(); in Java_com_roguetemple_hyperroid_HyperRogue_glhrinit() 195 return glhr::current_glprogram->uColor; in Java_com_roguetemple_hyperroid_HyperRogue_getuColor() 313 glhr::be_textured(); in Java_com_roguetemple_hyperroid_HyperRogue_draw() 314 glhr::be_nontextured(); in Java_com_roguetemple_hyperroid_HyperRogue_draw() 331 glhr::set_depthtest(false); in Java_com_roguetemple_hyperroid_HyperRogue_draw() 334 glhr::new_projection(); in Java_com_roguetemple_hyperroid_HyperRogue_draw() 335 glhr::projection_multiply(glhr::translate(-1,-1,0)); in Java_com_roguetemple_hyperroid_HyperRogue_draw() 336 glhr::projection_multiply(glhr::ortho(vid.xres/2, vid.yres/2, 1)); in Java_com_roguetemple_hyperroid_HyperRogue_draw() 337 glhr::set_modelview(glhr::id); in Java_com_roguetemple_hyperroid_HyperRogue_draw() 338 glhr::color2(0xC08040F0); in Java_com_roguetemple_hyperroid_HyperRogue_draw()
|
/dports/games/hyperrogue/hyperrogue-12.0f/devmods/ |
H A D | edit-shaders.cpp | 44 glhr::be_textured(); in es_handleKey() 46 auto p = glhr::get_shaders(); in es_handleKey() 54 glhr::be_textured(); in es_handleKey() 59 glhr::install_shaders(vsh, fsh); in es_handleKey() 60 glhr::be_textured(); in es_handleKey()
|
/dports/games/hyperrogue/hyperrogue-12.0f/rogueviz/ |
H A D | presentation.cpp | 104 static vector<glhr::textured_vertex> rtver(4); in draw_texture() 126 glhr::be_textured(); in draw_texture() 129 glhr::color2(0xFFFFFFFF); in draw_texture() 130 glhr::id_modelview(); in draw_texture() 132 glhr::prepare(rtver); in draw_texture() 133 glhr::set_depthtest(false); in draw_texture()
|
H A D | objmodels.cpp | 198 glvertex shade = glhr::makevertex(0, y, 0); in load_obj() 199 glvertex shadecol = glhr::makevertex(y, y, y); in load_obj() 213 …co->tv.tvertices.push_back(glhr::pointtogl(tot[0] + (tot[1] - tot[0]) * a / parts + (tot[2] - tot[… in load_obj()
|
H A D | newconf.cpp | 650 nctinf2.tvertices.push_back(glhr::makevertex(0.5-maxx, 0, 0)); in draw_ncee() 652 nctinf2.tvertices.push_back(glhr::makevertex(0.5-maxx, 1, 0)); in draw_ncee() 654 nctinf2.tvertices.push_back(glhr::makevertex(0.5+maxx, 0, 0)); in draw_ncee() 656 nctinf2.tvertices.push_back(glhr::makevertex(0.5-maxx, 1, 0)); in draw_ncee() 658 nctinf2.tvertices.push_back(glhr::makevertex(0.5+maxx, 0, 0)); in draw_ncee() 660 nctinf2.tvertices.push_back(glhr::makevertex(0.5+maxx, 1, 0)); in draw_ncee() 718 …nctinf.tvertices.push_back(glhr::makevertex((vx[c[s].y][c[s].x]/cscale-delta)*pconf.scale/2+.5, vy… in draw_ncee()
|
H A D | planets.cpp | 271 tv1.tvertices.push_back(glhr::pointtogl(vi)); in draw_earth() 361 tv.tvertices.push_back(glhr::pointtogl(vi)); in draw_earth()
|
H A D | bringris.cpp | 1470 glhr::id_modelview(); in display_next() 1471 glhr::set_depthtest(false); in display_next() 1472 glhr::color2(0xFFFFFFFF); in display_next() 1473 vector<glhr::textured_vertex> tvx; in display_next() 1477 glhr::textured_vertex tx; in display_next() 1486 glhr::prepare(tvx); in display_next()
|
H A D | inner-maps.cpp | 212 p.tvertices.push_back(glhr::makevertex(.5 + .5 * scr[0], .5 - .5 * scr[1], 0)); in render()
|
H A D | staircase.cpp | 26 using tv = glhr::textured_vertex;
|
H A D | rogueviz.cpp | 134 i.tinf.tvertices.push_back(glhr::makevertex(x + .5, y + .5, 0)); in parse() 459 tab.push_back(glhr::pointtogl(h)); in storevertex() 713 ei->tinf.tvertices.push_back(glhr::makevertex(0,(3+cos(a * degree))/4,0)); in drawVertex()
|
H A D | hyperbolic-analogs.cpp | 223 tv.tvertices.push_back(glhr::pointtogl(vi)); in draw_earth()
|