mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-10 16:45:26 +00:00
New subproject/data locations: - presets/presets-cream_of_the_crop: https://github.com/projectM-visualizer/presets-cream-of-the-crop - presets/presets-En_D: https://github.com/projectM-visualizer/presets-en-d - presets/textures: https://github.com/projectM-visualizer/presets-milkdrop-texture-pack - src/EyeTune: https://github.com/projectM-visualizer/frontend-uwp - src/museum: https://github.com/projectM-visualizer/museum - src/projectm-android: https://github.com/projectM-visualizer/examples-android - src/projectM-emscripten: https://github.com/projectM-visualizer/examples-emscripten - src/projectM-jack: https://github.com/projectM-visualizer/frontend-qt - src/projectM-libvisual: https://github.com/projectM-visualizer/frontend-libvisual-plug-in - src/projectM-libvisual-alsa: Deleted. - src/projectM-moviegen: https://github.com/projectM-visualizer/tools-moviegen - src/projectM-MusicPlugin: https://github.com/projectM-visualizer/frontend-music-plug-in - src/projectM-pulseaudio: https://github.com/projectM-visualizer/frontend-qt - src/projectM-qt: https://github.com/projectM-visualizer/frontend-qt - src/projectM-sdl: src/sdl-test-ui - src/projectM-test: tests
51 lines
1.6 KiB
C++
51 lines
1.6 KiB
C++
/**
|
|
* projectM -- Milkdrop-esque visualisation SDK
|
|
* Copyright (C)2019-2019 projectM Team
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
* See 'LICENSE.txt' included within this release
|
|
*
|
|
*/
|
|
|
|
#include <projectM.hpp>
|
|
#include <iostream>
|
|
#include <stdlib.h>
|
|
#include <cassert>
|
|
#include <TestRunner.hpp>
|
|
#include <SDL2/SDL.h>
|
|
#ifdef WIN32
|
|
#include <GL/glew.h>
|
|
#endif /** WIN32 */
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
SDL_Window *win = SDL_CreateWindow("projectM", 0, 0, 100, 100, SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE);
|
|
SDL_GLContext glCtx = SDL_GL_CreateContext(win);
|
|
#ifdef WIN32
|
|
GLenum err = glewInit();
|
|
#endif /** WIN32 */
|
|
|
|
// try unit tests
|
|
if (!TestRunner::run())
|
|
{
|
|
printf("unit tests failed\n");
|
|
exit(1);
|
|
}
|
|
printf("unit tests succeeded\n");
|
|
|
|
SDL_GL_DeleteContext(glCtx);
|
|
exit(0);
|
|
}
|