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
union  CoreGraphics::ImageLoadInfo::ImageData

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::ImageContainer { CoreGraphics::PNG , CoreGraphics::JPEG , CoreGraphics::TGA , CoreGraphics::HDR }
enum  CoreGraphics::ImageChannelPrimitive {
  CoreGraphics::Bit8UInt , CoreGraphics::Bit16UInt , CoreGraphics::Bit16Float , CoreGraphics::Bit32UInt ,
  CoreGraphics::Bit32Float
}

Functions

ImageId CoreGraphics::CreateImage (const ImageCreateInfoFile &info)
 create image from file path
ImageId CoreGraphics::CreateImage (const ImageCreateInfoData &info)
 create image from data buffer
ImageId CoreGraphics::CreateImage (const CoreGraphics::TextureId tex, CoreGraphics::PipelineStage stage)
 Create image from a texture and the pipeline stage it was last used with.
void CoreGraphics::DestroyImage (const ImageId id)
 destroy image
ImageDimensions CoreGraphics::ImageGetDimensions (const ImageId id)
 get image dimensions
const ubyteCoreGraphics::ImageGetBuffer (const ImageId id)
 Get pointer to buffer.
const SizeT CoreGraphics::ImageGetPixelStride (const ImageId id)
 Get pixel stride in bytes.
const SizeT CoreGraphics::ImageGetChannelStride (const ImageId id)
 Get channel stride in bytes.
void CoreGraphics::ImageConvertPrimitive (const ImageId id, const ImageChannelPrimitive primitive, bool denormalize)
 Convert image primitive.
bool CoreGraphics::ImageSaveToFile (const ImageId id, const ImageContainer container, const IO::URI &path)
 Save image to file.
ImageChannelPrimitive CoreGraphics::ImageGetChannelPrimitive (const ImageId id)
 get channel primitive