generated from RISC-OS-Community/StandardRepoTemplate
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from pzaino/develop
Added abstract memory manager to be able to allocate a framebuffer layer in the RISC OS RMA and still maintain compatibility with Linux for HW acelleration via cluster
- Loading branch information
Showing
3 changed files
with
49 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* This file is part of: | ||
* MicroFB, a minimal framebuffer library for RISC OS | ||
* | ||
* Description: | ||
* This project aims to provide a simple and efficient way to manage | ||
* the framebuffer on RISC OS using C++11. It abstracts the direct | ||
* interaction with the GraphicsV API, offering a higher-level | ||
* interface for drawing operations and framebuffer manipulation. | ||
* | ||
* Author: | ||
* Paolo Fabio Zaino, all rights reserved. | ||
* Distributed under License: | ||
* CDDL v1.1 (Common Development and Distribution License Version | ||
* 1.1) The use of this project is subject to the terms of the | ||
* CDDL v1.1. This project can be used and distributed according | ||
* to the terms of this license. For details on the CDDL v1.1, | ||
* please refer to the official license documentation. | ||
*/ | ||
|
||
#ifndef MEMMANAGER_HPP | ||
#define MEMMANAGER_HPP | ||
|
||
#include <cstddef> | ||
|
||
// Abstracted memory manager interface | ||
class MemoryManager { | ||
public: | ||
virtual ~MemoryManager() {} | ||
virtual void* allocate(size_t size) = 0; | ||
virtual void deallocate(void* memory) = 0; | ||
}; | ||
|
||
#endif // MEMMANAGER_HPP |