gabriel-russo / clion-opengl-template

CLion starting point for creating modern OpenGL applications in C.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clion-opengl-template

[en-US] --------------------

CLion starting point (boilerplate) for creating modern OpenGL applications in C in Linux.

The current scene contains a 3D spinning cube whith a texture (only works with .tga image). You can spin the object by left-clicking and dragging on the window.

Cmake -> If you have a better solution to make the texture works in /src/texture directory using cmakelist.txt, you are welcome to pull request.

[pt-BR] --------------------

Um template base para começar projetos com OpenGL no IDE Clion, usando a linguagem C no linux.

A cena do programa atual contem um cubo 3D que gira em todas as direções, com uma textura aplicada (apenas funciona com imagens .tga).

Voce pode girar o cubo segurando o botão esquerdo do mouse e arrastando dentro da janela.

Cmake -> Se voce tiver uma solução melhor para fazer a textura funcionar no diretório /src/texture usando o cmakelist.txt, fique a vontade para dar pull request.

Installation will be in Portuguese-BR language.

Instalação

Instale todos os pacotes necessários para o OpenGL funcionar, por exemplo:

sudo apt-get install libglew-dev

Declaração

#include <GL/glew.h>
#include "tgaload.h" //encontra em: /include

Screenshots

screenshot 1

Contributing

Pull requests are welcome.

License

You are free to do whatever you want with this project.

Special Thanks to Prof. Dr. Carolina Yukari Veludo Watanabe for teaching Computer Graphics.

alt tag

Computer Graphics - UNIR - 2021 class

About

CLion starting point for creating modern OpenGL applications in C.


Languages

Language:C++ 40.0%Language:C 25.5%Language:Makefile 17.7%Language:CMake 16.8%