类 | |
| class | Image |
| This module is responsible for decoding files such as PNG, GIF, JPEG into raw pixel data, as well as parsing compressed formats which are designed to be uploaded to the GPU and rendered without being un-compressed. This module does not know how to draw images on screen; only love.graphics knows that. 更多... | |
| class | ImageData |
| Represents raw pixel data. 更多... | |
| union | Row |
| struct | UvPaintReceipt |
| Owning receipt for one UV-space raster paint operation. 更多... | |
| struct | UvPaintRegion |
| Reusable renderer-neutral bounds for one normalized UV paint operation. 更多... | |
| class | UvPaintSession |
| Transactional, renderer-independent UV texture painting session. 更多... | |
| class | WebPHandler |
| Internal decoder adapter; each call owns its output and borrows input synchronously. 更多... | |
枚举 | |
| enum class | ImageScaleFilter { Point , Bilinear } |
| Sampling modes used by Pcg-compatible in-place texture scaling. 更多... | |
函数 | |
| Module_IMPL (Image, new Image()) | |
| Result< UvPaintRegion > | prepareUvPaintRegionResult (int targetWidth, int targetHeight, float u, float v, float radiusU, float radiusV, float r, float g, float b, float a, bool flipV=true) |
| Validate and prepare the canonical clipped region for a UV brush. | |
枚举类型说明
◆ ImageScaleFilter
|
strong |
Sampling modes used by Pcg-compatible in-place texture scaling.
| 枚举值 | |
|---|---|
| Point | |
| Bilinear | |
在文件 ImageData.h 第 26 行定义.
函数说明
◆ Module_IMPL()
| eve::image::Module_IMPL | ( | Image | , |
| new | Image() | ||
| ) |
◆ prepareUvPaintRegionResult()
| Result< UvPaintRegion > eve::image::prepareUvPaintRegionResult | ( | int | targetWidth, |
| int | targetHeight, | ||
| float | u, | ||
| float | v, | ||
| float | radiusU, | ||
| float | radiusV, | ||
| float | r, | ||
| float | g, | ||
| float | b, | ||
| float | a, | ||
| bool | flipV = true |
||
| ) |
Validate and prepare the canonical clipped region for a UV brush.
- 参数
-
targetWidth Positive target width in pixels. targetHeight Positive target height in pixels. u Normalized horizontal center; values outside [0,1] are clamped. v Normalized vertical center; values outside [0,1] are clamped. radiusU Non-negative normalized horizontal radius. radiusV Non-negative normalized vertical radius. r Red channel in [0,1]. g Green channel in [0,1]. b Blue channel in [0,1]. a Alpha/coverage channel in [0,1]. flipV Convert bottom-left UV V to top-left image coordinates when true.
- 返回
- Owning region, or a structured diagnostic without side effects. @ownership Returned value owns all its state and retains no backend objects. @thread Pure and thread-safe. @reentrancy Does not invoke callbacks.
在文件 UvPaintRegion.cpp 第 19 行定义.
引用了 a, eve::image::UvPaintRegion::a, b, eve::image::UvPaintRegion::b, eve::image::UvPaintRegion::centerX, eve::image::UvPaintRegion::centerY, eve::Diagnostic::error(), eve::Result< T >::failure(), g, eve::image::UvPaintRegion::g, eve::InvalidArgument, eve::image::UvPaintRegion::maxX, eve::image::UvPaintRegion::maxY, message, eve::image::UvPaintRegion::minX, eve::image::UvPaintRegion::minY, path, eve::image::UvPaintRegion::r, r, eve::image::UvPaintRegion::radiusU, eve::image::UvPaintRegion::radiusV, eve::Result< T >::success(), eve::image::UvPaintRegion::targetHeight, eve::image::UvPaintRegion::targetWidth, u, eve::image::UvPaintRegion::u, v , 以及 eve::image::UvPaintRegion::v.
被这些函数引用 eve::image::ImageData::paintCircleUv() , 以及 eve::image::UvPaintRegion::prepareResult().