![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SDL2
david_ck_csdn
这个作者很懒,什么都没留下…
展开
-
SDL2
SDL2 窗口创建SDL2 图像渲染原创 2021-01-30 03:33:47 · 137 阅读 · 0 评论 -
SDL2 窗口创建
#include <SDL.h>int main(void){ SDL_Window *window; SDL_Event event; // 初始化 SDL_Init(SDL_INIT_EVERYTHING); // 创建窗口 window = SDL_CreateWindow("SDL2", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 800, 600, 0); while原创 2021-01-29 03:05:44 · 405 阅读 · 0 评论 -
SDL2 图像渲染
#include <SDL.h>int main(int argc, char *argv[]){ SDL_Window *window = NULL; SDL_Renderer *renderer = NULL; SDL_Texture *texture = NULL; SDL_Surface *surface = NULL; // 初始化 SDL_Init(SDL_INIT_VIDEO); // 创建窗口 window原创 2021-01-30 02:40:23 · 399 阅读 · 1 评论 -
SDL2 文字渲染
#include <SDL.h>#include <SDL_ttf.h>int main(int argc, char *argv[]){ SDL_Window *window = NULL; SDL_Renderer *renderer = NULL; SDL_Texture *texture = NULL; SDL_Surface *surface = NULL; TTF_Font *font = NULL; SDL_Col原创 2021-01-30 12:26:44 · 1004 阅读 · 0 评论 -
SDL2 环境构建 (macOS + CLion + SDL2)
File : CMakeLists.txtfind_package(SDL2)include_directories(${SDL2_INCLUDE_DIRS})link_libraries(${SDL2_LIBRARIES})SDL2_INCLUDE_DIRS/usr/local/Cellar/sdl2/2.0.14_1/include/SDL2SDL2_LIBRARIES-L/usr/local/Cellar/sdl2/2.0.14_1/lib -lSDL2File : sd.原创 2021-01-29 02:18:05 · 679 阅读 · 0 评论 -
SDL2
SDL扩展库SDL_image 图片加载库SDL_mixer 声音播放库SDL_ttf 文字渲染库SDL_rtfSDL_net原创 2021-01-29 00:43:11 · 121 阅读 · 0 评论 -
SDL
SDL - Simple DirectMedia Layerhttp://libsdl.org/VideoInput EventsForce FeedbackAudioFile I/O AbstractionShared Object SupportThreadsTimersCPU Feature DetectionEndian IndependencePower Management原创 2021-01-29 00:27:13 · 50 阅读 · 0 评论