
SDL
文章平均质量分 61
依梦_728297725
经验随着年龄的增长而积累更多,提高自身,享受成长。
展开
-
SDL2学习------事件处理
// EventDemo.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include "SDL.h"#include "SDL_image.h"#include <iostream>#include <string>//窗口属性const int SCREEN_WIDTH = 640;const int SCREEN_HEIGHT = 480;SDL_Texture *load_image(SDL_Renderer原创 2021-06-12 08:42:47 · 640 阅读 · 0 评论 -
SDL2学习------图片显示
// HelloWord.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include <iostream>#include "SDL.h"#include "SDL_image.h"int _ShowImage(){ if (SDL_Init(SDL_INIT_EVERYTHING) == -1) { std::cout << SDL_GetError() << std::endl;...原创 2021-06-12 08:17:08 · 425 阅读 · 0 评论 -
SDL2学习------准备工作
1、需要下载SDL2.0的开发库2、需要下载SDL2_image扩展库原创 2021-06-11 23:35:05 · 289 阅读 · 0 评论 -
SDL学习一(显示图片)
#include "stdafx.h"#include "SDL.h"int _tmain(int argc, _TCHAR* argv[]){ //Two Images SDL_Surface* hello = NULL; SDL_Surface* screen = NULL; //Start SDL SDL_Init(SDL_INIT_EVERYTHING); //Set up Screen ...原创 2018-05-10 10:57:33 · 361 阅读 · 0 评论 -
SDL环境搭建
获取头文件、库文件:http://www.libsdl.org/download-1.2.phphttps://www.libsdl.org/projects/SDL_image/【开发环境搭建】>>>SDL2.0开发环境配置:1、从www.libsdl.org 下载SDL2.0开发工具,主要是include头文件目录及编译好的lib和dll文件,并解压;2、打开VS2012,新...原创 2018-05-10 11:30:45 · 553 阅读 · 0 评论 -
SDL学习二(显示png图片)
// SDLSample.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include "SDL_image.h"#include "SDL.h"#include <stdexcept>#include <string>#include <iostream>#include "SDL.h"#include &原创 2018-05-10 11:46:20 · 2621 阅读 · 0 评论