MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / PaintAddImageAsOrphan

Function PaintAddImageAsOrphan

src/openrct2/paint/Paint.cpp:911–917  ·  view source on GitHub ↗

* * rct2: 0x00686EF0, 0x00687056, 0x006871C8, 0x0068733C, 0x0098198C * * @param image_id (ebx) * @param x_offset (al) * @param y_offset (cl) * @param bound_box_length_x (di) * @param bound_box_length_y (si) * @param bound_box_length_z (ah) * @param z_offset (dx) * @param bound_box_offset_x (0x009DEA52) * @param bound_box_offset_y (0x009DEA54) * @param bound_box_offset_z (0x009DEA56)

Source from the content-addressed store, hash-verified

909 * Creates a paint struct but does not allocate to a paint quadrant. Result cannot be ignored!
910 */
911[[nodiscard]] PaintStruct* PaintAddImageAsOrphan(
912 PaintSession& session, const ImageId imageId, const CoordsXYZ& offset, const BoundBoxXYZ& boundBox)
913{
914 session.LastPS = nullptr;
915 session.LastAttachedPS = nullptr;
916 return CreateNormalPaintStruct(session, imageId, offset, boundBox);
917}
918
919/**
920 *

Callers 1

PaintSlopeTransitionsFunction · 0.85

Calls 1

CreateNormalPaintStructFunction · 0.85

Tested by

no test coverage detected