6#include <Common/primitive_type.h>
29 auto getOddAndEvenImages()
const -> std::pair<std::shared_ptr<Image>, std::shared_ptr<Image>>;
31 std::shared_ptr<Image> m_oddImage;
32 std::shared_ptr<Image> m_evenImage;
39 ClassType clazz(
"checkerboard");
40 clazz.docName(
"Checkerboard Image");
42 "A procedural image that divides its parametric domain into rectangular tiles. Each tile "
43 "can be categorized into even and odd, where all neighboring tiles of an even tile is odd "
44 "and all neighboring tiles of an odd tile is even.");
45 clazz.baseOn<
Image>();
49 "The image to use in the odd tile.");
51 clazz.addField(oddImage);
55 "The image to use in the even tile.");
57 clazz.addField(evenImage);
61 "Number of tiles in the U axis of the parametric coordinates.");
64 clazz.addField(uTiles);
68 "Number of tiles in the V axis of the parametric coordinates.");
71 clazz.addField(vTiles);
Definition CheckerboardImage.h:16
PH_DEFINE_SDL_CLASS(TSdlOwnerClass< CheckerboardImage >)
Definition CheckerboardImage.h:37
std::shared_ptr< TTexture< Image::ArrayType > > genNumericTexture(const CookingContext &ctx) override
Definition CheckerboardImage.cpp:14
void setOddImage(std::shared_ptr< Image > oddImage)
Definition CheckerboardImage.cpp:56
std::shared_ptr< TTexture< math::Spectrum > > genColorTexture(const CookingContext &ctx) override
Definition CheckerboardImage.cpp:26
void setNumTiles(real numTilesU, real numTilesV)
Definition CheckerboardImage.cpp:38
void setEvenImage(std::shared_ptr< Image > evenImage)
Definition CheckerboardImage.cpp:61
Information about the world being cooked.
Definition CookingContext.h:24
SDL binding type for a canonical SDL resource class.
Definition TSdlOwnerClass.h:23
A field class that binds a floating point member variable.
Definition TSdlReal.h:21
A value that points to a SDL resource.
Definition TSdlReference.h:21
TSdlReference & required()
Definition TSdlReference.ipp:228
TSdlReference & description(std::string descriptionStr)
Definition TSdlReference.ipp:206
TSdlValue & description(std::string descriptionStr)
Definition TSdlValue.ipp:95
TSdlValue & optional()
Definition TSdlValue.ipp:103
TSdlValue & defaultTo(T defaultValue)
Definition TSdlValue.ipp:71
The root for all renderer implementations.
Definition EEngineProject.h:6