Home
last modified time | relevance | path

Searched refs:screenHeight (Results 1 – 25 of 1148) sorted by relevance

12345678910>>...46

/dports/devel/raylib/raylib-3.7.0/examples/physics/
H A Dphysics_movement.c26 const int screenHeight = 450; in main() local
29 InitWindow(screenWidth, screenHeight, "raylib [physac] example - physics movement"); in main()
39 …PhysicsBody floor = CreatePhysicsBodyRectangle((Vector2){ screenWidth/2, screenHeight }, screenWid… in main()
40 …atformLeft = CreatePhysicsBodyRectangle((Vector2){ screenWidth*0.25f, screenHeight*0.6f }, screenW… in main()
41 …tformRight = CreatePhysicsBodyRectangle((Vector2){ screenWidth*0.75f, screenHeight*0.6f }, screenW… in main()
42 …sBody wallLeft = CreatePhysicsBodyRectangle((Vector2){ -5, screenHeight/2 }, 10, screenHeight, 10); in main()
43 …t = CreatePhysicsBodyRectangle((Vector2){ screenWidth + 5, screenHeight/2 }, 10, screenHeight, 10); in main()
53 …PhysicsBody body = CreatePhysicsBodyRectangle((Vector2){ screenWidth/2, screenHeight/2 }, 50, 50, … in main()
69 body->position = (Vector2){ screenWidth/2, screenHeight/2 }; in main()
88 DrawFPS(screenWidth - 90, screenHeight - 30); in main()
H A Dphysics_friction.c24 const int screenHeight = 450; in main() local
27 InitWindow(screenWidth, screenHeight, "raylib [physac] example - physics friction"); in main()
37 …PhysicsBody floor = CreatePhysicsBodyRectangle((Vector2){ screenWidth/2, screenHeight }, screenWid… in main()
39 …PhysicsBody wall = CreatePhysicsBodyRectangle((Vector2){ screenWidth/2, screenHeight*0.8f }, 10, 8… in main()
43 …PhysicsBody rectLeft = CreatePhysicsBodyRectangle((Vector2){ 25, screenHeight - 5 }, 250, 250, 10); in main()
53 PhysicsBody bodyA = CreatePhysicsBodyRectangle((Vector2){ 35, screenHeight*0.6f }, 40, 40, 10); in main()
58 …PhysicsBody bodyB = CreatePhysicsBodyRectangle((Vector2){ screenWidth - 35, screenHeight*0.6f }, 4… in main()
76 bodyA->position = (Vector2){ 35, screenHeight*0.6f }; in main()
81 bodyB->position = (Vector2){ screenWidth - 35, screenHeight*0.6f }; in main()
94 DrawFPS(screenWidth - 90, screenHeight - 30); in main()
[all …]
H A Dphysics_restitution.c24 const int screenHeight = 450; in main() local
27 InitWindow(screenWidth, screenHeight, "raylib [physac] example - physics restitution"); in main()
37 …PhysicsBody floor = CreatePhysicsBodyRectangle((Vector2){ screenWidth/2, screenHeight }, screenWid… in main()
42 …PhysicsBody circleA = CreatePhysicsBodyCircle((Vector2){ screenWidth*0.25f, screenHeight/2 }, 30, … in main()
44 …PhysicsBody circleB = CreatePhysicsBodyCircle((Vector2){ screenWidth*0.5f, screenHeight/2 }, 30, 1… in main()
46 …PhysicsBody circleC = CreatePhysicsBodyCircle((Vector2){ screenWidth*0.75f, screenHeight/2 }, 30, … in main()
65 circleA->position = (Vector2){ screenWidth*0.25f, screenHeight/2 }; in main()
67 circleB->position = (Vector2){ screenWidth*0.5f, screenHeight/2 }; in main()
69 circleC->position = (Vector2){ screenWidth*0.75f, screenHeight/2 }; in main()
80 DrawFPS(screenWidth - 90, screenHeight - 30); in main()
H A Dphysics_demo.c24 const int screenHeight = 450; in main() local
27 InitWindow(screenWidth, screenHeight, "raylib [physac] example - physics demo"); in main()
37 …PhysicsBody floor = CreatePhysicsBodyRectangle((Vector2){ screenWidth/2, screenHeight }, 500, 100,… in main()
41 … PhysicsBody circle = CreatePhysicsBodyCircle((Vector2){ screenWidth/2, screenHeight/2 }, 45, 10); in main()
58 … floor = CreatePhysicsBodyRectangle((Vector2){ screenWidth/2, screenHeight }, 500, 100, 10); in main()
61 circle = CreatePhysicsBodyCircle((Vector2){ screenWidth/2, screenHeight/2 }, 45, 10); in main()
74 if (body != NULL && (body->position.y > screenHeight*2)) DestroyPhysicsBody(body); in main()
84 DrawFPS(screenWidth - 90, screenHeight - 30); in main()
/dports/devel/raylib/raylib-3.7.0/examples/text/
H A Dtext_rectangle_bounds.c21 const int screenHeight = 450; in main() local
23 InitWindow(screenWidth, screenHeight, "raylib [text] example - draw text inside a rectangle"); in main()
32 Rectangle container = { 25.0f, 25.0f, screenWidth - 50.0f, screenHeight - 250.0f }; in main()
39 const float maxHeight = screenHeight - 160.0f; in main()
101 DrawRectangle(0, screenHeight - 54, screenWidth, 54, GRAY); in main()
102 DrawRectangleRec((Rectangle){ 382.0f, screenHeight - 34.0f, 12.0f, 12.0f }, MAROON); in main()
104 DrawText("Word Wrap: ", 313, screenHeight-115, 20, BLACK); in main()
105 if (wordWrap) DrawText("ON", 447, screenHeight - 115, 20, RED); in main()
106 else DrawText("OFF", 447, screenHeight - 115, 20, BLACK); in main()
108 DrawText("Press [SPACE] to toggle word wrap", 218, screenHeight - 86, 20, GRAY); in main()
[all …]
H A Dtext_font_filters.c23 const int screenHeight = 450; in main() local
25 InitWindow(screenWidth, screenHeight, "raylib [text] example - font filters"); in main()
39 Vector2 fontPosition = { 40.0f, screenHeight/2.0f - 80.0f }; in main()
111 DrawRectangle(0, screenHeight - 80, screenWidth, 80, LIGHTGRAY); in main()
112 … DrawText(TextFormat("Font size: %02.02f", fontSize), 20, screenHeight - 50, 10, DARKGRAY); in main()
113 …tFormat("Text size: [%02.02f, %02.02f]", textSize.x, textSize.y), 20, screenHeight - 30, 10, DARKG… in main()
H A Dtext_font_spritefont.c28 const int screenHeight = 450; in main() local
30 InitWindow(screenWidth, screenHeight, "raylib [text] example - sprite font loading"); in main()
42 screenHeight/2.0f - font1.baseSize/2.0f - 80.0f }; in main()
45 screenHeight/2.0f - font2.baseSize/2.0f - 10.0f }; in main()
48 screenHeight/2.0f - font3.baseSize/2.0f + 50.0f }; in main()
/dports/devel/raylib/raylib-3.7.0/examples/textures/
H A Dtextures_image_generation.c21 const int screenHeight = 450; in main() local
23 … InitWindow(screenWidth, screenHeight, "raylib [textures] example - procedural images generation"); in main()
25 Image verticalGradient = GenImageGradientV(screenWidth, screenHeight, RED, BLUE); in main()
26 Image horizontalGradient = GenImageGradientH(screenWidth, screenHeight, RED, BLUE); in main()
27 Image radialGradient = GenImageGradientRadial(screenWidth, screenHeight, 0.0f, WHITE, BLACK); in main()
28 Image checked = GenImageChecked(screenWidth, screenHeight, 32, 32, RED, BLUE); in main()
29 Image whiteNoise = GenImageWhiteNoise(screenWidth, screenHeight, 0.5f); in main()
30 Image perlinNoise = GenImagePerlinNoise(screenWidth, screenHeight, 50, 50, 4.0f); in main()
31 Image cellular = GenImageCellular(screenWidth, screenHeight, 32); in main()
H A Dtextures_srcrec_dstrec.c19 const int screenHeight = 450; in main() local
21 …InitWindow(screenWidth, screenHeight, "raylib [textures] examples - texture source and destination… in main()
34 Rectangle destRec = { screenWidth/2.0f, screenHeight/2.0f, frameWidth*2.0f, frameHeight*2.0f }; in main()
65 DrawLine((int)destRec.x, 0, (int)destRec.x, screenHeight, GRAY); in main()
68 … DrawText("(c) Scarfy sprite by Eiden Marsal", screenWidth - 200, screenHeight - 20, 10, GRAY); in main()
H A Dtextures_blend_modes.c23 const int screenHeight = 450; in main() local
25 InitWindow(screenWidth, screenHeight, "raylib [textures] example - blend modes"); in main()
59 …DrawTexture(bgTexture, screenWidth/2 - bgTexture.width/2, screenHeight/2 - bgTexture.height/2, WHI… in main()
63 …DrawTexture(fgTexture, screenWidth/2 - fgTexture.width/2, screenHeight/2 - fgTexture.height/2, WHI… in main()
78 …rpunk Street Environment by Luis Zuno (@ansimuz)", screenWidth - 330, screenHeight - 20, 10, GRAY); in main()
/dports/emulators/emulationstation/EmulationStation-2.9.4/es-core/src/renderers/
H A DRenderer.cpp20 static int screenHeight = 0; variable
130 viewport.h = screenHeight; in init()
138 viewport.x = windowWidth - screenOffsetY - screenHeight; in init()
140 viewport.w = screenHeight; in init()
145 projection.translate({0, screenHeight * -1.0f, 0}); in init()
152 viewport.y = windowHeight - screenOffsetY - screenHeight; in init()
154 viewport.h = screenHeight; in init()
158 projection.translate({screenWidth * -1.0f, screenHeight * -1.0f, 0}); in init()
166 viewport.w = screenHeight; in init()
195 if(box.h == 0) box.h = screenHeight - box.y; in pushClipRect()
[all …]
/dports/devel/raylib/raylib-3.7.0/examples/core/
H A Dcore_2d_camera.c21 const int screenHeight = 450; in main() local
23 InitWindow(screenWidth, screenHeight, "raylib [core] example - 2d camera"); in main()
35 buildings[i].y = screenHeight - 130.0f - buildings[i].height; in main()
45 camera.offset = (Vector2){ screenWidth/2.0f, screenHeight/2.0f }; in main()
101 … DrawLine((int)camera.target.x, -screenHeight*10, (int)camera.target.x, screenHeight*10, GREEN); in main()
109 DrawRectangle(0, 5, 5, screenHeight - 10, RED); in main()
110 DrawRectangle(screenWidth - 5, 5, 5, screenHeight - 10, RED); in main()
111 DrawRectangle(0, screenHeight - 5, screenWidth, 5, RED); in main()
H A Dcore_input_gestures.c22 const int screenHeight = 450; in main() local
24 InitWindow(screenWidth, screenHeight, "raylib [core] example - input gestures"); in main()
27 Rectangle touchArea = { 220, 10, screenWidth - 230.0f, screenHeight - 20.0f }; in main()
89 DrawRectangle(225, 15, screenWidth - 240, screenHeight - 30, RAYWHITE); in main()
91 … DrawText("GESTURES TEST AREA", screenWidth - 270, screenHeight - 40, 20, Fade(GRAY, 0.5f)); in main()
102 DrawRectangleLines(10, 29, 200, screenHeight - 50, GRAY); in main()
/dports/devel/raylib/raylib-3.7.0/examples/shaders/
H A Dshaders_raymarching.c28 int screenHeight = 450; in main() local
31 InitWindow(screenWidth, screenHeight, "raylib [shaders] example - raymarching shapes"); in main()
51 float resolution[2] = { (float)screenWidth, (float)screenHeight }; in main()
81 screenHeight = GetScreenHeight(); in main()
82 float resolution[2] = { (float)screenWidth, (float)screenHeight }; in main()
96 DrawRectangle(0, 0, screenWidth, screenHeight, WHITE); in main()
99 …Raymarching shader by Iñigo Quilez. MIT License.", screenWidth - 280, screenHeight - 20, 10, BLACK… in main()
H A Dshaders_custom_uniform.c32 const int screenHeight = 450; in main() local
36 InitWindow(screenWidth, screenHeight, "raylib [shaders] example - custom uniform variable"); in main()
60 float swirlCenter[2] = { (float)screenWidth/2, (float)screenHeight/2 }; in main()
63 RenderTexture2D target = LoadRenderTexture(screenWidth, screenHeight); in main()
79 swirlCenter[1] = screenHeight - mousePosition.y; in main()
117 … DrawText("(c) Barracks 3D model by Alberto Cano", screenWidth - 220, screenHeight - 20, 10, GRAY); in main()
H A Dshaders_spotlight.c72 const int screenHeight = 450; in main() local
74 InitWindow(screenWidth, screenHeight, "raylib - shader spotlight"); in main()
124 spots[i].pos.y = GetRandomValue(64.0f, screenHeight - 64.0f); in main()
161 spots[i].pos.y = screenHeight - mp.y; in main()
171 if (spots[i].pos.y > (screenHeight - 64)) spots[i].vel.y = -spots[i].vel.y; in main()
194 … (screenHeight/2.0f) + sin((frameCounter + i*8)/17.87f)*(screenHeight/4.2f), WHITE); in main()
203 DrawRectangle(0, 0, screenWidth, screenHeight, WHITE); in main()
209 DrawText("Pitch Black", screenWidth*0.2f, screenHeight/2, 20, GREEN); in main()
210 DrawText("Dark", screenWidth*.66f, screenHeight/2, 20, GREEN); in main()
/dports/games/trackballs/trackballs-1.3.3/src/
H A DcalibrateJoystickMode.cc110 addText_Center(0, headerSize, screenHeight / 2 - 100 - headerSize * 1 - menusize * 4, in display()
115 addText_Center(0, menusize, screenHeight / 2 - 100 - menusize * 3, str, screenWidth / 2); in display()
120 addText_Center(0, menusize, screenHeight / 2 - 100 - menusize * 1, stages[stage], in display()
123 addText_Center(0, menusize, screenHeight / 2 + 100 + menusize * 1, in display()
125 addText_Center(0, menusize, screenHeight / 2 + 100 + menusize * 3, in display()
130 addText_Center(0, linesize, screenHeight / 2 + 100 + menusize * 4 + linesize * 1, str, in display()
137 addText_Center(0, linesize, screenHeight / 2 + 100 + menusize * 4 + linesize * 3, str, in display()
140 draw2DRectangle(screenWidth / 2 - 85, screenHeight / 2 - 85, 170, 170, 0., 0., 1., 1., 0.3, in display()
146 int y = (int)(screenHeight / 2 + 50.0 * jy); in display()
H A DhelpMode.cc95 draw2DRectangle(0, 0, screenWidth, screenHeight, bgCoord[0], bgCoord[1], bgCoord[2], in display()
135 perspectiveMatrix(25, (GLdouble)screenWidth / (GLdouble)std::max(screenHeight, 1), 0.1, 200, in display()
154 glViewport(11 * screenWidth / 20, 11 * screenHeight / 20, 4 * screenWidth / 10, in display()
155 4 * screenHeight / 10); in display()
171 glViewport(11 * screenWidth / 20, 1 * screenHeight / 10, 4 * screenWidth / 10, in display()
172 4 * screenHeight / 10); in display()
178 glViewport(0, 0, screenWidth, screenHeight); in display()
267 drawSimpleText(text[i], 50, 1 * screenHeight / 10 + (i - s1) * 3 * fontSize + fontSize, in display()
274 drawSimpleText(text[i], 50, 6 * screenHeight / 10 + (i - s2) * 3 * fontSize + fontSize, in display()
281 addText_Right(CODE_MOREHELP, menusize, screenHeight - 5 * menusize / 2, _("More Help"), in display()
[all …]
/dports/devel/raylib/raylib-3.7.0/examples/shapes/
H A Dshapes_logo_raylib.c19 const int screenHeight = 450; in main() local
21 InitWindow(screenWidth, screenHeight, "raylib [shapes] example - raylib logo using shapes"); in main()
40 DrawRectangle(screenWidth/2 - 128, screenHeight/2 - 128, 256, 256, BLACK); in main()
41 DrawRectangle(screenWidth/2 - 112, screenHeight/2 - 112, 224, 224, RAYWHITE); in main()
42 DrawText("raylib", screenWidth/2 - 44, screenHeight/2 + 48, 50, BLACK); in main()
/dports/games/atanks/atanks-6.5/src/
H A Dland.cpp27 depthStrip[0] = (double *)calloc(env.screenHeight + 1, sizeof(double)); in generate_land()
28 depthStrip[1] = (double *)calloc(env.screenHeight + 1, sizeof(double)); in generate_land()
32 cerr << ( (env.screenHeight + 1) * 2 * sizeof(double)); in generate_land()
73 temp_land = create_bitmap(env.screenWidth, env.screenHeight); in generate_land()
129 memcpy (depthStrip[0], depthStrip[1], env.screenHeight * sizeof(double)); in generate_land()
130 for (depth = 1; depth < env.screenHeight; depth++) { in generate_land()
136 - (env.screenHeight - depth); in generate_land()
154 while ( (depth < env.screenHeight) in generate_land()
180 offset += (env.screenHeight - depth) * 0.5; in generate_land()
184 while ( (y + offset) > env.screenHeight) in generate_land()
[all …]
/dports/www/phpvirtualbox-legacy/phpvirtualbox-5.2-1/endpoints/
H A Dscreen.php120 $screenHeight = array_shift($res); variable
130 $screenHeight = $factor * $screenHeight; variable
132 $screenHeight = ($screenWidth * 9.0/16.0); variable
146 if(!$screenWidth || !$screenHeight) {
148 $screenHeight = 480; variable
152 …ay($vbox->session->console->display->takeScreenShotToArray(0, $screenWidth, $screenHeight, 'PNG'));
157 …ay($vbox->session->console->display->takeScreenShotToArray(0, $screenWidth, $screenHeight, 'PNG'));
/dports/www/phpvirtualbox/phpvirtualbox-cf82d58f2/endpoints/
H A Dscreen.php120 $screenHeight = array_shift($res); variable
130 $screenHeight = $factor * $screenHeight; variable
132 $screenHeight = ($screenWidth * 9.0/16.0); variable
146 if(!$screenWidth || !$screenHeight) {
148 $screenHeight = 480; variable
152 …ay($vbox->session->console->display->takeScreenShotToArray(0, $screenWidth, $screenHeight, 'PNG'));
157 …ay($vbox->session->console->display->takeScreenShotToArray(0, $screenWidth, $screenHeight, 'PNG'));
/dports/devel/raylib/raylib-3.7.0/templates/simple_game/
H A Dsimple_game.c30 const int screenHeight = 450; in main() local
32 InitWindow(screenWidth, screenHeight, "raylib template - simple game"); in main()
114 DrawRectangle(0, 0, screenWidth, screenHeight, GREEN); in main()
122 DrawRectangle(0, 0, screenWidth, screenHeight, PURPLE); in main()
130 DrawRectangle(0, 0, screenWidth, screenHeight, BLUE); in main()
/dports/cad/gds3d/GDS3D-bcdb97a/gdsoglviewer/
H A Dui_ruler.cpp156 glOrtho(0.0, (GLdouble) wm->screenWidth, 0.0, (GLdouble) wm->screenHeight, -1.0f, 1.0f); in Draw()
163 …ld()->gl_square(wm->screenWidth - 300.0f,wm->screenHeight - 90.0f, wm->screenWidth - 20.0f, wm->sc… in Draw()
165 …d()->gl_square(wm->screenWidth - 300.0f, wm->screenHeight - 90.0f, wm->screenWidth - 20.0f, wm->sc… in Draw()
172 …wm->getWorld()->gl_printf(1.0f, 1.0f, 1.0f, 0.4f, wm->screenWidth - 280, wm->screenHeight - 110, "… in Draw()
174 …wm->getWorld()->gl_printf(1.0f, 1.0f, 1.0f, 0.4f, wm->screenWidth - 280, wm->screenHeight - 110, "… in Draw()
178 …wm->getWorld()->gl_printf(1.0f, 1.0f, 1.0f, 0.4f, wm->screenWidth - 280, wm->screenHeight - 110, "… in Draw()
181 …wm->getWorld()->gl_printf(1.0f, 1.0f, 1.0f, 0.4f, wm->screenWidth - 280, wm->screenHeight - 130, "… in Draw()
182 …wm->getWorld()->gl_printf(1.0f, 1.0f, 1.0f, 0.4f, wm->screenWidth - 280, wm->screenHeight - 150, "… in Draw()
235 …creenWidth)/((float)wm->screenHeight)*(((float)xpos)/((float)wm->screenWidth)-0.5f), 1.0f*(((float… in Event()
/dports/devel/raylib/raylib-3.7.0/examples/audio/
H A Daudio_module_playing.c29 const int screenHeight = 450; in main() local
33 InitWindow(screenWidth, screenHeight, "raylib [audio] example - module playing (streaming)"); in main()
48 …circles[i].position.y = (float)GetRandomValue((int)circles[i].radius, (int)(screenHeight - circles… in main()
109 …s[i].position.y = (float)GetRandomValue((int)circles[i].radius, (int)(screenHeight - circles[i].ra… in main()
128 DrawRectangle(20, screenHeight - 20 - 12, screenWidth - 40, 12, LIGHTGRAY); in main()
129 DrawRectangle(20, screenHeight - 20 - 12, (int)timePlayed, 12, MAROON); in main()
130 DrawRectangleLines(20, screenHeight - 20 - 12, screenWidth - 40, 12, GRAY); in main()

12345678910>>...46