mirror of
https://github.com/unknownworlds/NS.git
synced 2024-11-23 04:52:16 +00:00
60007652a3
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@21 67975925-1194-0748-b3d5-c16f83f1a3a1
20 lines
490 B
C++
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) {}
|
|
|
|
|