mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Added project generator.
This commit is contained in:
+10
-3
@@ -27,23 +27,30 @@
|
||||
|
||||
namespace love
|
||||
{
|
||||
/**
|
||||
* This class is a simple abstraction over
|
||||
**/
|
||||
class Data : public Object
|
||||
{
|
||||
public:
|
||||
|
||||
/**
|
||||
* Destructor.
|
||||
**/
|
||||
virtual ~Data() {};
|
||||
|
||||
/**
|
||||
* Gets a pointer to the data.
|
||||
* Gets a pointer to the data. This pointer will obviously not
|
||||
* be valid if the Data object is destroyed.
|
||||
**/
|
||||
virtual void * getData() const = 0 ;
|
||||
|
||||
/**
|
||||
* Gets the size of the data buffer.
|
||||
* Gets the size of the Data in bytes.
|
||||
**/
|
||||
virtual int getSize() const = 0;
|
||||
|
||||
}; // Data
|
||||
} // love
|
||||
|
||||
#endif // LOVE_DATA_H
|
||||
#endif // LOVE_DATA_H
|
||||
|
||||
Reference in New Issue
Block a user