Advertisement

SDL_Renderer内存泄漏

阅读量:

使用SDL render过程中发现存在内存泄漏问题;

使用这个例子可以展示

Lazy Foo's Production: Texture Acquisition and Visualization

代码如下:

The source code for this program is copyrighted by Lazy Foo' Productions, established between 2004 and 2019, and it must not be redistributed without obtaining written permission.

//Including SDL, SDL_image, standard IO, and strings
#include <SDL.h>
#include <SDL_image.h>
#include <stdio.h>
#include <string»

//Screen dimension constants
int const SCREEN_WIDTH = 640;
int const SCREEN_HEIGHT = 480

全部评论 (0)

还没有任何评论哟~