Skip to content

Commit a4faed2

Browse files
committed
setLogLevel, GetLogLevel, setMarkerInfoDir docs
1 parent e443d49 commit a4faed2

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

js/artoolkit.api.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -952,16 +952,26 @@
952952
/**
953953
Sets the logging level to use by ARToolKit.
954954
955-
@param
955+
@param {number} mode type for the log level.
956956
*/
957957
ARController.prototype.setLogLevel = function (mode) {
958958
return artoolkit.setLogLevel(mode);
959959
};
960-
960+
/**
961+
Gets the logging level used by ARToolKit.
962+
*/
961963
ARController.prototype.getLogLevel = function () {
962964
return artoolkit.getLogLevel();
963965
};
964-
966+
/**
967+
Sets the dir (direction) of the marker. Direction that tells about the rotation
968+
about the marker (possible values are 0, 1, 2 or 3).
969+
This parameter makes it possible to tell about the line order of the detected marker
970+
(so which line is the first one) and so find the first vertex.
971+
This is important to compute the transformation matrix in arGetTransMat().
972+
@param {number} markerIndex the index of the marker
973+
@param {number} dir direction of the marker (possible values are 0, 1, 2 or 3).
974+
*/
965975
ARController.prototype.setMarkerInfoDir = function (markerIndex, dir) {
966976
return artoolkit.setMarkerInfoDir(this.id, markerIndex, dir);
967977
};

0 commit comments

Comments
 (0)