diff options
author | chai <chaifix@163.com> | 2018-05-18 19:03:08 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-05-18 19:03:08 +0800 |
commit | ccd8422bbe59143a4c62c9ce96c785f3ac75ce89 (patch) | |
tree | 95a4156704fd1c52f84a579cf1a68dc170fa6ded /src | |
parent | 9458eb868631b29e00182c37f1c7e46981b68edd (diff) |
添加音乐
Diffstat (limited to 'src')
-rw-r--r-- | src/libjin/README.md | 0 | ||||
-rw-r--r-- | src/libjin/audio/source.cpp | 9 | ||||
-rw-r--r-- | src/libjin/render/window.cpp | 1 | ||||
-rw-r--r-- | src/script/debug/luaopen_debug.cpp | 1 | ||||
-rw-r--r-- | src/script/luaopen_types.h | 7 |
5 files changed, 11 insertions, 7 deletions
diff --git a/src/libjin/README.md b/src/libjin/README.md new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/libjin/README.md diff --git a/src/libjin/audio/source.cpp b/src/libjin/audio/source.cpp index cca4d3e..dd87718 100644 --- a/src/libjin/audio/source.cpp +++ b/src/libjin/audio/source.cpp @@ -1,2 +1,11 @@ #include "source.h" +namespace jin +{ +namespace audio +{ + + + +} +}
\ No newline at end of file diff --git a/src/libjin/render/window.cpp b/src/libjin/render/window.cpp index e5d26a7..0d53654 100644 --- a/src/libjin/render/window.cpp +++ b/src/libjin/render/window.cpp @@ -39,6 +39,7 @@ namespace render SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8); SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8); SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8); + SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); Uint32 flags = SDL_WINDOW_SHOWN | SDL_WINDOW_OPENGL ; diff --git a/src/script/debug/luaopen_debug.cpp b/src/script/debug/luaopen_debug.cpp index 658899f..b33c058 100644 --- a/src/script/debug/luaopen_debug.cpp +++ b/src/script/debug/luaopen_debug.cpp @@ -4,6 +4,5 @@ namespace debug { - } }
\ No newline at end of file diff --git a/src/script/luaopen_types.h b/src/script/luaopen_types.h index c6ce202..bb6f5b1 100644 --- a/src/script/luaopen_types.h +++ b/src/script/luaopen_types.h @@ -15,15 +15,10 @@ class Proxy public: inline void bind(void* obj) { - if (obj != 0 && obj != nullptr) - object = obj; + object = obj; } void* object; - - ~Proxy() - { - } }; #endif |