mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 15:32:25 +00:00
ca971bbfd8
This patch changes the top-level directory layout as a preparatory step for improving the tools for managing 3rd-party source codes. The rationale is described in the issue referenced below. Issue #1082
43 lines
944 B
C++
43 lines
944 B
C++
/*
|
|
* \brief Generic interface of texture allocator
|
|
* \date 2013-12-31
|
|
* \author Norman Feske
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2005-2013 Genode Labs GmbH
|
|
*
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
* under the terms of the GNU General Public License version 2.
|
|
*/
|
|
|
|
#ifndef _INCLUDE__SCOUT__TEXTURE_ALLOCATOR_H_
|
|
#define _INCLUDE__SCOUT__TEXTURE_ALLOCATOR_H_
|
|
|
|
#include <os/texture.h>
|
|
#include <scout/types.h>
|
|
|
|
|
|
namespace Scout {
|
|
struct Texture_allocator;
|
|
|
|
using Genode::Texture;
|
|
using Genode::Texture_base;
|
|
|
|
struct Texture_allocator;
|
|
}
|
|
|
|
|
|
struct Scout::Texture_allocator
|
|
{
|
|
virtual Texture_base *alloc_texture(Area size, bool alpha) = 0;
|
|
|
|
virtual void free_texture(Texture_base *) = 0;
|
|
|
|
virtual void set_rgba_texture(Texture_base *texture,
|
|
unsigned char const *rgba,
|
|
unsigned len, int y) = 0;
|
|
};
|
|
|
|
#endif /* _INCLUDE__SCOUT__TEXTURE_ALLOCATOR_H_ */
|