ns/releases/3.2.0/source/ui/bitmappng.cpp
puzl 5dcc163bd5 made a copy
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@379 67975925-1194-0748-b3d5-c16f83f1a3a1
2006-04-02 10:49:08 +00:00

20 lines
490 B
C++

//========= Copyright © 1996-2001, Valve LLC, All rights reserved. ============
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================
#include "vgui.h"
#include "bitmappng.h"
#include <memory.h>
BitmapPNG::BitmapPNG(int width, int height, uchar* data)
{
setSize(width,height); //double-check that this allocates the memory we need!
memcpy(_rgba,data,width*height*4);
}
BitmapPNG::~BitmapPNG(void) {}