1

SDL 简单学习

更详细的信息请查看SDL wiki

备注

此处主要是学习用SDL制作一个播放器的一些常用的函数,具体的过程看下图:
clipboard.png

详细介绍

SDL_Init()

初始化SDL

clipboard.png

SDL_CreateWindow()

Use this function to create a window with the specified position, dimensions, and flags.

clipboard.png

SDL_CreateRenderer()

Use this function to create a 2D rendering context for a window.

clipboard.png

SDL_CreateTexture()

Use this function to create a texture for a rendering context.

clipboard.png

SDL_UpdateTexture()

Use this function to update the given texture rectangle with new pixel data.

clipboard.png


haoguo
11 声望3 粉丝