Define the following terms in OO context.
- class
- object
- interface
- abstract
- concrete
- inheritence
- composition
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE language SYSTEM "language.dtd"> | |
| <!-- the version of this file shows the largest supported OpenGL version, second digit is the minor patch level (Y.XP = supports GLSL X.Y0 with patchlevel P --> | |
| <language name="GLSL" section="Sources" extensions="*.glsl;*.vsh;*.vert;*.tcsh;*.tcs;*.tesh;*.tes;*.gsh;*.geo;*.geom;*.fsh;*.frag;*.csh;*.cs" mimetype="text/x-glslsrc" version="4.40" kateversion="2.4" author="Robert Menzel ([email protected])" license="LGPL"> | |
| <highlighting> | |
| <!-- ####################################################################################################### keywords --> | |
| <list name="keywordsCompatibility"> | |
| <!-- compatibility mode, older GLSL versions --> | |
| <item>attribute</item> |
| const char* GLErrorToString(GLenum err) | |
| { | |
| switch (err) | |
| { | |
| case GL_NO_ERROR: return "GL_NO_ERROR"; | |
| case GL_INVALID_ENUM: return "GL_INVALID_ENUM"; | |
| case GL_INVALID_VALUE: return "GL_INVALID_VALUE"; | |
| case GL_INVALID_OPERATION: return "GL_INVALID_OPERATION"; | |
| case GL_STACK_OVERFLOW: return "GL_STACK_OVERFLOW"; | |
| case GL_STACK_UNDERFLOW: return "GL_STACK_UNDERFLOW"; |
| 2> parser.cpp | |
| 2>C:\cygwin\home\Nicolas\Programming\vklang\src\vk\parser.cpp(273): error C2280: 'std::unique_ptr<vk::TypeExpression,std::default_delete<_Ty>>::unique_ptr(const std::unique_ptr<_Ty,std::default_delete<_Ty>> &)' : attempting to reference a deleted function | |
| 2> with | |
| 2> [ | |
| 2> _Ty=vk::TypeExpression | |
| 2> ] | |
| 2> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\memory(1486) : see declaration of 'std::unique_ptr<vk::TypeExpression,std::default_delete<_Ty>>::unique_ptr' | |
| 2> with | |
| 2> [ | |
| 2> _Ty=vk::TypeExpression |
| import gdk.Event; | |
| import gtk.DrawingArea; | |
| import gtk.Main; | |
| import gtk.MainWindow; | |
| import gtk.Widget; | |
| import gtk.Button; | |
| import gtk.VBox; | |
| import glgdk.GLConfig; | |
| import glgdk.GLContext; |
| all: | |
| dmd main.d -L-lDerelictGL3 -L-lDerelictGLFW3 -L-lDerelictUtil -L-ldl |
| import derelict.opengl3.gl3; | |
| import derelict.glfw3.glfw3; | |
| void main(){ | |
| DerelictGL3.load(); | |
| DerelictGLFW3.load(); | |
| glfwInit(); | |
| GLFWwindow* window = glfwCreateWindow(640,480,"Hello, World!",null,null); |
| import derelict.opengl3.gl3; | |
| void main(){ | |
| DerelictGL3.load(); | |
| } | |
| /usr/local/lib/d/libDerelictGL3.a(gl3_8d_649.o):(.data+0x38): undefined reference to `_D8derelict4util6loader15SharedLibLoader7__ClassZ' | |
| /usr/local/lib/d/libDerelictGL3.a(gl3_8d_649.o):(.rodata+0x2508): undefined reference to `_D8derelict4util6loader15SharedLibLoader4loadMFZv' | |
| /usr/local/lib/d/libDerelictGL3.a(gl3_8d_649.o):(.rodata+0x250c): undefined reference to `_D8derelict4util6loader15SharedLibLoader4loadMFAyaZv' | |
| /usr/local/lib/d/libDerelictGL3.a(gl3_8d_649.o):(.rodata+0x2510): undefined reference to `_D8derelict4util6loader15SharedLibLoader4loadMFAAyaZv' |
| # core {{{ | |
| [core] | |
| editor = vim | |
| # }}} | |
| # user {{{ | |
| [user] | |
| name = Nicolas Guillemot | |
| email = [email protected] | |
| # }}} |
| #include <SDL/SDL.h> | |
| #include <SDL/SDL_image.h> | |
| #include <math.h> | |
| SDL_Surface *screen; | |
| float hue_from_rgb(int r, int g, int b) | |
| { | |
| // return atan2(sqrt(3.0) * (g - b), 2.0f * r - g - b); | |
| return atan2(2.0f * r - g - b, sqrt(3.0) * (g - b)); |