[[oktatas:programozás:opengl|< OpenGL]] ====== OpenGL programozás Linuxon ====== * **Szerző:** Sallai András * Copyright (c) Sallai András, 2020 * [[https://creativecommons.org/licenses/by-sa/4.0/|CC Attribution-Share Alike 4.0 International]] * Web: https://szit.hu ===== OpenGL képesség ellenőrzése ===== Szükséges csomag ellenőrzése: apt install mesa-utils Ellenőrzés: glxinfo | grep OpenGL A kimenet ehhez hasonló kell legyen: $ glxinfo | grep OpenGL OpenGL vendor string: X.Org OpenGL renderer string: AMD ARUBA (DRM 2.50.0 / 4.19.0-5-amd64, LLVM 7.0.1) OpenGL core profile version string: 4.3 (Core Profile) Mesa 18.3.6 OpenGL core profile shading language version string: 4.30 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL core profile extensions: OpenGL version string: 3.1 Mesa 18.3.6 OpenGL shading language version string: 1.40 OpenGL context flags: (none) OpenGL extensions: OpenGL ES profile version string: OpenGL ES 3.1 Mesa 18.3.6 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10 OpenGL ES profile extensions: ===== OpenGL telepítése ===== apt install build-essential libgl1-mesa-dev ===== Könyvtárak ===== apt install libglew-dev libsdl2-dev \ libsdl2-image-dev libglm-dev libfreetype6-dev ===== IDE telepítése ===== apt install codeblocks ===== Forrás ===== * https://en.wikibooks.org/wiki/OpenGL_Programming (2020)