Skip to content

Commit f8cb149

Browse files
committed
rplight: various API documentation fixes
1 parent ad0e634 commit f8cb149

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

contrib/src/rplight/rpLight.I

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ inline void RPLight::assign_slot(int slot) {
148148
* changed. This will cause all shadow sources to be updated, emitting a
149149
* shadow update. Be careful when calling this method if you don't want all
150150
* sources to get updated. If you only have to invalidate a single shadow source,
151-
* use get_shadow_source(n)->set_needs_update(true).
151+
* use `get_shadow_source(n)->set_needs_update(true)`.
152152
*/
153153
inline void RPLight::invalidate_shadows() {
154154
for (size_t i = 0; i < _shadow_sources.size(); ++i) {
@@ -296,14 +296,14 @@ inline bool RPLight::get_casts_shadows() const {
296296
}
297297

298298
/**
299-
* @brief Sets the lights shadow map resolution
300-
* @details This sets the lights shadow map resolution. This has no effect
299+
* @brief Sets the light's shadow map resolution
300+
* @details This sets the light's shadow map resolution. This has no effect
301301
* when the light is not told to cast shadows (Use RPLight::set_casts_shadows).
302302
*
303-
* When calling this on a light with multiple shadow sources (e.g. PointLight),
304-
* this controls the resolution of each source. If the light has 6 shadow sources,
305-
* and you use a resolution of 512x512, the lights shadow map will occur a
306-
* space of 6 * 512x512 maps in the shadow atlas.
303+
* When calling this on a light with multiple shadow sources (e.g.
304+
* RPPointLight), this controls the resolution of each source. If the light
305+
* has 6 shadow sources, and you use a resolution of 512x512, the light's
306+
* shadow map will occupy a space of 6 * 512x512 maps in the shadow atlas.
307307
*
308308
* @param resolution Resolution of the shadow map in pixels
309309
*/
@@ -326,14 +326,14 @@ inline size_t RPLight::get_shadow_map_resolution() const {
326326
}
327327

328328
/**
329-
* @brief Sets the ies profile
329+
* @brief Sets the IES profile
330330
* @details This sets the ies profile of the light. The parameter should be a
331331
* handle previously returned by RenderPipeline.load_ies_profile. Using a
332332
* value of -1 indicates no ies profile.
333333
*
334-
* Notice that for ies profiles which cover a whole range, you should use
335-
* PointLights, whereas for ies profiles which only cover the lower hemisphere
336-
* you should use SpotLights for the best performance.
334+
* Notice that for IES profiles which cover a whole range, you should use an
335+
* RPPointLight, whereas for ies profiles which only cover the lower
336+
* hemisphere you should use an RPSpotLight for the best performance.
337337
*
338338
* @param profile IES Profile handle
339339
*/
@@ -343,8 +343,8 @@ inline void RPLight::set_ies_profile(int profile) {
343343
}
344344

345345
/**
346-
* @brief Returns the lights ies profile
347-
* @details This returns the ies profile of a light, previously set with
346+
* @brief Returns the light's IES profile
347+
* @details This returns the IES profile of a light, previously set with
348348
* RPLight::set_ies_profile. In case no ies profile was set, returns -1.
349349
*
350350
* @return IES Profile handle
@@ -354,20 +354,20 @@ inline int RPLight::get_ies_profile() const {
354354
}
355355

356356
/**
357-
* @brief Returns whether the light has an ies profile assigned
358-
* @details This returns whether the light has an ies profile assigned,
357+
* @brief Returns whether the light has an IES profile assigned
358+
* @details This returns whether the light has an IES profile assigned,
359359
* previously done with RPLight::set_ies_profile.
360360
*
361-
* @return true if the light has an ies profile assigned, false otherwise
361+
* @return true if the light has an IES profile assigned, false otherwise
362362
*/
363363
inline bool RPLight::has_ies_profile() const {
364364
return _ies_profile >= 0;
365365
}
366366

367367
/**
368-
* @brief Clears the ies profile
369-
* @details This clears the ies profile of the light, telling it to no longer
370-
* use an ies profile, and instead use the default attenuation.
368+
* @brief Clears the IES profile
369+
* @details This clears the IES profile of the light, telling it to no longer
370+
* use an IES profile, and instead use the default attenuation.
371371
*/
372372
inline void RPLight::clear_ies_profile() {
373373
set_ies_profile(-1);
@@ -377,7 +377,7 @@ inline void RPLight::clear_ies_profile() {
377377
* @brief Sets the near plane of the light
378378
* @details This sets the near plane of all shadow sources of the light. It has
379379
* no effects if the light does not cast shadows. This prevents artifacts from
380-
* objects near to the light. It behaves like Lens::set_near_plane.
380+
* objects near to the light. It behaves like Lens::set_near().
381381
*
382382
* It can also help increasing shadow map precision, low near planes will
383383
* cause the precision to suffer. Try setting the near plane as big as possible.
@@ -394,7 +394,7 @@ inline void RPLight::set_near_plane(float near_plane) {
394394

395395
/**
396396
* @brief Returns the near plane of the light
397-
* @details This returns the lights near plane, previously set with
397+
* @details This returns the light's near plane, previously set with
398398
* RPLight::set_near_plane. If the light does not cast shadows, this value
399399
* is meaningless.
400400
*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy