basestruct.h

来自「用SDL写的一个小游戏」· C头文件 代码 · 共 31 行

H
31
字号
#ifndef BASESTRUCT_H
#define BASESTRUCT_H

#include "sdl.h"
#include<stdio.h>
#include<stdlib.h>
#include <cmath>
#pragma  comment(lib,"winmm.lib")
struct SColor
{
	float r,g,b;
	SColor(float _r,float _g,float _b) : r(_r),g(_g),b(_b){}
	SColor(){}
};

struct SPosition
{
	Uint16 x,y;
	
	SPosition(int _x,int _y)
	{
		x = _x;
		y = _y;
	}
	SPosition(){}
};


#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?