All pastes #2105894 Raw Edit

Someone

public text v1 · immutable
#2105894 ·published 2012-01-25 03:04 UTC
rendered paste body
header:


#pragma once
class ColorARGB
{
public:
	typedef unsigned char channel;
	channel a, r, g, b;
	ColorARGB(channel alpha, channel red, channel green, channel blue);
	ColorARGB(float alpha, float red, float green, float blue);
	 
};

.cpp:


#include "ColorARGB.h"
#include "stdafx.h"


typedef unsigned char channel;
channel a, r, g, b;

ColorARGB::ColorARGB(channel alpha, channel red, channel green, channel blue)
{
	a = alpha;
	r = red;
	g = green;
	b = blue;
}

ColorARGB::ColorARGB(float alpha, float red, float green, float blue)
{
}