Skylicht Engine
Toggle main menu visibility
Loading...
Searching...
No Matches
Irrlicht
Include
IRWBuffer.h
1
// Copyright (C) 2020 Pham Hong Duc
2
// This file is part of the "Skylicht Engine"
3
// Upgrade GPU Compute Shader feature
4
5
#ifndef __IRR_IRW_BUFFER_H_INCLUDED__
6
#define __IRR_IRW_BUFFER_H_INCLUDED__
7
8
#include "IrrCompileConfig.h"
9
10
#include "IReferenceCounted.h"
11
#include "EDriverTypes.h"
12
13
namespace
irr
14
{
15
namespace
video
16
{
17
class
IRWBuffer :
public
virtual
IReferenceCounted
18
{
19
public
:
20
IRWBuffer(
ECOLOR_FORMAT
format,
u32
numElements) :
21
DriverType(
EDT_NULL
),
22
Format(format),
23
NumElements(numElements)
24
{
25
}
26
27
E_DRIVER_TYPE
getDriverType()
const
{
return
DriverType; };
28
29
virtual
void
* lock(
bool
readOnly) = 0;
30
31
virtual
void
unlock() = 0;
32
33
protected
:
34
35
E_DRIVER_TYPE
DriverType;
36
ECOLOR_FORMAT
Format;
37
u32
NumElements;
38
};
39
}
40
}
41
42
#endif
irr::IReferenceCounted::IReferenceCounted
IReferenceCounted()
Constructor.
Definition
IReferenceCounted.h:50
irr::video
The video namespace contains classes for accessing the video driver. All 2d and 3d rendering is done ...
Definition
EDriverFeatures.h:11
irr::video::ECOLOR_FORMAT
ECOLOR_FORMAT
An enum for the color format of textures used by the Irrlicht Engine.
Definition
SColor.h:18
irr::video::E_DRIVER_TYPE
E_DRIVER_TYPE
An enum for all types of drivers the Irrlicht Engine supports.
Definition
EDriverTypes.h:15
irr::video::EDT_NULL
@ EDT_NULL
Null driver, useful for applications to run the engine without visualisation.
Definition
EDriverTypes.h:19
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition
Skylicht.h:33
irr::u32
unsigned int u32
32 bit unsigned variable.
Definition
irrTypes.h:58
Generated by
1.17.0