You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking for the cglm equivalent of DirectX's XMMatrixLookAtLH, and found glm_camera_lookat in the test list, which seems promising, but it doesn't seem to be defined anywhere.
In test/tests.h file, TEST_DECLARE(glm_camera_lookat) declares test_glm_camera_lookat() and TEST_ENTRY(glm_camera_lookat) in same file add its to test list.
In test/src/test_cam.h file, TEST_IMPL(GLM_PREFIX, camera_lookat) { defines the test function body. TEST_IMPL Macro adds prefix of the name by GLM_PREFIX e.g. test_glm_camera_lookat, test_glmc_camera_lookat ...
This is how tests work in cglm, make check should run tests...
The actual camera functions are glm_lookat(), glm_look()... which are defined in include/cglm headers...
Also you can use both LH and RH by including (or define CGLM_CLIPSPACE_INCLUDE_ALL to include all) related headers at cglm/clipspace/view_lh.h, cglm/clipspace/view_rh.h, cglm/clipspace/view_lh_zo.h, cglm/clipspace/view_no.h... or just define CGLM_CONFIG_CLIP_CONTROL macro as CGLM_CLIP_CONTROL_LH_ZO, CGLM_CLIP_CONTROL_LH_NO... to switch between them without using lh/rh, no/zo suffixes...
I'm looking for the cglm equivalent of DirectX's XMMatrixLookAtLH, and found glm_camera_lookat in the test list, which seems promising, but it doesn't seem to be defined anywhere.
Even searching for it in the repo via github gets me nowhere. (https://github.com/recp/cglm/search?q=glm_camera_lookat)
Where is it defined?
The text was updated successfully, but these errors were encountered: