grieverheart / space_invaders Goto Github PK
View Code? Open in Web Editor NEWA simple space invaders "clone" built using OpenGL 3 and GLFW.
A simple space invaders "clone" built using OpenGL 3 and GLFW.
This works fine:
g++ -std=c++11 -o main -lglfw -lGLEW -lGL main.cpp
but running the following throws an error:
geoff@ubuntu:~/work/interview$ ./main
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
Error: GLX: Failed to create context: GLXBadFBConfig
diff --git a/make.sh b/make.sh
index 4f626e8..c935c9f 100755
--- a/make.sh
+++ b/make.sh
@@ -1,2 +1,2 @@
#!/bin/bash
-g++ -Wall -std=c++11 -O0 -g -o main -lglfw -lglew -framework OpenGL main.cpp
+g++ -Wall -std=c++11 -O0 -g -o main main.cpp -lglfw -lGLEW -lGL
Just wanted to say that space_invaders builds great with sakemake, right out of the box, no build-configuration needed. :)
I made a fork of the space invaders code here, but I am unsure if this is okay, since a license i missing.
What is the license for this project?
In your 1st blog post, you write that the command to compile the code is
g++ -std=c++11 -o main -lglfw -lglew -framework OpenGL main.cpp
But, for me, on the latest Fedora release, it was the command you suggested for Mac OS X that worked
g++ -std=c++11 -o main -lglfw -lGLEW -lGL main.cpp
Is this a mistake on your end, or just Fedora being weird ? (Very cool tutorials by the way)
Running on Linux, I was experiencing the application crashing with a segmentation fault.
This would occur when executing the call: glGenVertexArrays(1, &fullscreen_triangle_vao);
To fix this, I needed to set the global switch glewExperimental
to GL_TRUE
before initialising glew, eg:
glewExperimental = GL_TRUE;
GLenum err = glewInit();
I add some levels, enhancements, etc?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.