Nebula
Loading...
Searching...
No Matches
image.h File Reference

Detailed Description

Implements a CPU side image.

#include "ids/id.h"
#include "ids/idallocator.h"
#include "pixelformat.h"
#include "io/uri.h"

Go to the source code of this file.

Classes

struct  CoreGraphics::ImageId
 
struct  CoreGraphics::ImageCreateInfoFile
 
struct  CoreGraphics::ImageCreateInfoData
 
struct  CoreGraphics::ImageDimensions
 
struct  CoreGraphics::ImageLoadInfo
 

Namespaces

namespace  CoreGraphics
 Acceleration structures are used to enable ray tracing on the GPU by dividing the scene into a BVH.
 

Typedefs

typedef Ids::IdAllocator< ImageLoadInfoCoreGraphics::ImageAllocator
 

Enumerations

enum  CoreGraphics::ImageChannelPrimitive {
  CoreGraphics::Bit8Uint , CoreGraphics::Bit16Uint , CoreGraphics::Bit16Float , CoreGraphics::Bit32Uint ,
  CoreGraphics::Bit32Float
}
 
enum  CoreGraphics::ImageContainer { CoreGraphics::PNG , CoreGraphics::JPEG , CoreGraphics::DDS }
 

Functions

ImageId CoreGraphics::CreateImage (const ImageCreateInfoFile &info)
 create image from file path
 
ImageId CoreGraphics::CreateImage (const ImageCreateInfoData &info)
 create image from data buffer
 
void CoreGraphics::DestroyImage (const ImageId id)
 destroy image
 
ImageDimensions CoreGraphics::ImageGetDimensions (const ImageId id)
 get image dimensions
 
const byte * CoreGraphics::ImageGetBuffer (const ImageId id)
 get pointer to buffer
 
const byte * CoreGraphics::ImageGetRedPtr (const ImageId id)
 get pointer to first element of red channel
 
const byte * CoreGraphics::ImageGetGreenPtr (const ImageId id)
 get pointer to first element of green channel
 
const byte * CoreGraphics::ImageGetBluePtr (const ImageId id)
 get pointer to first element of blue channel
 
const byte * CoreGraphics::ImageGetAlphaPtr (const ImageId id)
 get pointer to first element if alpha channel
 
const SizeT CoreGraphics::ImageGetPixelStride (const ImageId id)
 get pixel stride, using the above pointers makes it possible to get all reds, blues, greens, etc.
 
ImageChannelPrimitive CoreGraphics::ImageGetChannelPrimitive (const ImageId id)
 get channel primitive