Why use it
It provides direct, allocation-conscious access to the object model module. No exception-based error path is implied by the signature.
EPOK RUNTIME
Method · 1 overload
Sets region as part of the object model module.
void set_region(uint32_t x,uint32_t y,uint32_t width,uint32_t height)Sets region as part of the object model module.
| Parameter | Type | Meaning |
|---|---|---|
x | uint32_t | Value supplied for x. Keep referenced or pointed-to data valid for the complete call. |
y | uint32_t | Value supplied for y. Keep referenced or pointed-to data valid for the complete call. |
width | uint32_t | Value supplied for width. Keep referenced or pointed-to data valid for the complete call. |
height | uint32_t | Value supplied for height. Keep referenced or pointed-to data valid for the complete call. |
Returns: Nothing (void).
#include "object_model.hpp"
// Assume these named values have been initialized with valid data:
// uint32_t x
// uint32_t y
// uint32_t width
// uint32_t height
epok::ImageComponent& object = /* obtain a valid instance */;
object.set_region(x, y, width, height);It provides direct, allocation-conscious access to the object model module. No exception-based error path is implied by the signature.
Call it only in the lifecycle phase described by the module. Validate indices, capacities and object state before use.
Declared in runtime/object_model.hpp:800
class_idPerforms `class id` as part of the object model module.MethodenabledPerforms `enabled` as part of the object model module.Methodentity_slotPerforms `entity slot` as part of the object model module.Methodset_colorSets color as part of the object model module.Methodset_enabledSets enabled as part of the object model module.Methodset_textureSets texture as part of the object model module.Method