/** SGX

The   sss    gggg x   x   
     s      g      x x    Engine
      sss   g  gg   x
         s  g   g  x x          Copyright 1995-2009.
     ssss    gggg x   x         Steven Goodwin. All Rights Reserved.
    
This version has been released under the GNU Public License v2.0.

Please see the license files for details.

File: sgx/include/sgx/core/memory/memframeblock.hpp

*/

#ifndef SGX_MEMORY_FRAME_BLOCK 
#define SGX_MEMORY_FRAME_BLOCK	1

class CFrameBlock {
public:

	CFrameBlock(void *ptr, tMEM_SIZE size, tUINT32 align);
	~CFrameBlock();

	void *Alloc(tMEM_SIZE size);
	void reset();

protected:
	tBYTE		*m_pStartMemory;
	tBYTE		*m_pCurrent;
	tBYTE		*m_pEndMemory;
	tBYTE		*m_pFrameBlock;
//	CSGXMemory	*m_pFrameBlock;	// TODO
};

#endif /* SGX_MEMORY_FRAME_BLOCK */
