mirror of
https://github.com/unknownworlds/NS.git
synced 2024-11-15 01:02:04 +00:00
21 lines
490 B
C++
21 lines
490 B
C++
|
//========= Copyright <20> 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) {}
|
|||
|
|
|||
|
|