World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
test_libraries_deployment.cpp
См. документацию.
1 #include <zlib.h>
2 
3 #include <al/al.h>
4 #include <al/alc.h>
5 
6 #include <SDL.h>
7 
8 extern "C" {
9 #include <libavcodec/avcodec.h>
10 }
11 
12 SDLMAIN_DECLSPEC int main(int argc, char* argv[]) {
13  // ensure zlib was installed successfully
14  deflateInit(nullptr, 0);
15 
16  // ensure openal was installed successfully
17  auto a = alcOpenDevice(nullptr);
18 
19  // ensure sdl2 was installed successfully
20  SDL_Delay(1000);
21 
22  // ensure ffmpeg was installed successfully
24 
25  return 0;
26 }
SDL.h
al.h
main
SDLMAIN_DECLSPEC int main(int argc, char *argv[])
Definition: test_libraries_deployment.cpp:12
AV_CODEC_ID_H264
@ AV_CODEC_ID_H264
Definition: avcodec.h:245
alc.h
SDL_Delay
DECLSPEC void SDLCALL SDL_Delay(Uint32 ms)
Wait a specified number of milliseconds before returning.
avcodec_find_decoder
AVCodec * avcodec_find_decoder(enum AVCodecID id)
alcOpenDevice
ALC_API ALCdevice *ALC_APIENTRY alcOpenDevice(const ALCchar *devicename)
b
GLboolean GLboolean GLboolean b
Definition: SDL_opengl_glext.h:1112
avcodec.h
a
GLboolean GLboolean GLboolean GLboolean a
Definition: SDL_opengl_glext.h:1112
zlib.h