• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Razakhel / RaZ / 11823370997

13 Nov 2024 06:19PM UTC coverage: 74.341% (+0.003%) from 74.338%
11823370997

push

github

Razakhel
[Script/LuaXr] Added Lua bindings for XR features

- Const'd XR rendering functions that could be

11 of 14 new or added lines in 6 files covered. (78.57%)

2 existing lines in 1 file now uncovered.

8069 of 10854 relevant lines covered (74.34%)

1813.62 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

87.5
/src/RaZ/Script/LuaXr.cpp
1
#include "RaZ/XR/XrSystem.hpp"
2
#include "RaZ/Script/LuaWrapper.hpp"
3

4
#define SOL_ALL_SAFETIES_ON 1
5
#include "sol/sol.hpp"
6

7
namespace Raz {
8

9
void LuaWrapper::registerXrTypes() {
2✔
10
  sol::state& state = getState();
2✔
11

12
  {
13
    sol::usertype<XrSystem> xrSystem = state.new_usertype<XrSystem>("XrSystem",
NEW
14
                                                                    sol::constructors<XrSystem(const std::string&)>(),
×
15
                                                                    sol::base_classes, sol::bases<System>());
2✔
16
    xrSystem["getOptimalViewWidth"]  = &XrSystem::getOptimalViewWidth;
2✔
17
    xrSystem["getOptimalViewHeight"] = &XrSystem::getOptimalViewHeight;
2✔
18
  }
2✔
19
}
2✔
20

21
} // namespace Raz
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc