Giter Site home page Giter Site logo

linuscde / helloopengl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wallhalla/helloopengl

0.0 1.0 0.0 2.48 MB

Ganz tolles Projekt

C++ 49.35% Lua 0.03% Batchfile 0.01% HTML 6.26% CSS 0.07% C 42.26% CMake 0.57% Objective-C 1.42% GLSL 0.02% Shell 0.01%

helloopengl's Introduction

HelloOpenGl

Ganz tolles Projekt

Genutzte Bibliotheken

#GL Funktionen

Erstellen eines Kontext/Window mit GLFW

  • glfwInit()

  • glfwWindowHint -- Konfiguriert verschiedenste Parameter bzgl. des zu nutzenden OpenGL Kontext.

  • glfwCreateWindow(Breite, Höhe, "Titel", (optional)Monitor, (optional)Share) -- Erzeugt ein Fenster mit den gegebenen Einstellungen.

  • glfwTerminate() -- Aufräumen von GLFW

  • glfwMakeContextCurrent(Window*) -- Verknüpft alle Operationen bzgl. OpenGL auf das übergebene Fenster.

  • glfwWindowShouldClose(Window*) -- Liefert die Information ob das Fenster geschlossen werden soll.

  • glClearColor(Farbe) -- Setzt die Farbe die im Fall von glClear(GL_COLOR_BUFFER_BIT) als Löschfarbe dient.

  • glClear(Bits) -- GL_COLOR_BUFFER_BIT (Löschfarbe) -> Löscht/Übermalt den Backbuffer mit dem gesetzten Wert aus glClearColor() (Standardmäßig Schwarz)

  • glfwSwapBuffers(Window*) -- Tauscht den Backbuffer mit dem Frontbuffer aus.

  • glfwPollEvents -- Behandelt alle ausstehenden Input-Events (f.e. Keyevents, Mouseevents etc)

Kompilieren eines Shaders

-- siehe Documentation: https://www.khronos.org/opengl/wiki/Shader_Compilation

helloopengl's People

Contributors

wallhalla avatar linuscde avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.