8#include <Common/primitive_type.h>
42 ClassType clazz(
"raster-base");
43 clazz.docName(
"Base of Raster Image");
44 clazz.description(
"Common information for raster-based images.");
45 clazz.baseOn<
Image>();
48 sampleMode.description(
"Sample mode of the raster image.");
50 sampleMode.optional();
51 clazz.addField(sampleMode);
54 wrapMode.
description(
"Wrap mode of the raster image.");
57 clazz.addField(wrapMode);
61 "Wrap mode of the raster image in the vertical direction. If this field is specified, the "
62 "<wrap-mode> field is treated as the horizontal wrap mode.");
65 clazz.addField(verticalWrapMode);
Information about the world being cooked.
Definition CookingContext.h:24
Definition RasterImageBase.h:14
EImageWrapMode getVerticalWrapMode() const
Definition RasterImageBase.cpp:21
EImageSampleMode getSampleMode() const
Definition RasterImageBase.cpp:11
RasterImageBase & setSampleMode(EImageSampleMode mode)
Definition RasterImageBase.cpp:27
RasterImageBase & setWrapMode(EImageWrapMode mode)
Definition RasterImageBase.cpp:33
RasterImageBase & setResolution(math::TVector2< uint32 > resolution)
Definition RasterImageBase.cpp:47
math::TVector2< uint32 > getResolution() const
Definition RasterImageBase.cpp:6
PH_DEFINE_SDL_CLASS(TSdlOwnerClass< RasterImageBase >)
Definition RasterImageBase.h:40
EImageWrapMode getHorizontalWrapMode() const
Definition RasterImageBase.cpp:16
std::shared_ptr< TTexture< math::Spectrum > > genColorTexture(const CookingContext &ctx) override=0
std::shared_ptr< TTexture< Image::ArrayType > > genNumericTexture(const CookingContext &ctx) override=0
Definition TSdlEnumField.h:23
SDL binding type for a canonical SDL resource class.
Definition TSdlOwnerClass.h:23
TSdlValue & description(std::string descriptionStr)
Definition TSdlValue.ipp:95
TSdlValue & optional()
Definition TSdlValue.ipp:103
TSdlValue & defaultTo(T defaultValue)
Definition TSdlValue.ipp:71
Represents a 2-D vector.
Definition TVector2.h:19
The root for all renderer implementations.
Definition EEngineProject.h:6
EImageSampleMode
Definition sdl_image_enums.h:9
EImageWrapMode
Definition sdl_image_enums.h:31