michael@0: /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "assert.h" michael@0: #include "ANPBase.h" michael@0: #include michael@0: michael@0: #define LOG(args...) __android_log_print(ANDROID_LOG_INFO, "GeckoPlugins" , ## args) michael@0: #define ASSIGN(obj, name) (obj)->name = anp_matrix_##name michael@0: michael@0: /** Return a new identity matrix michael@0: */ michael@0: ANPMatrix* michael@0: anp_matrix_newMatrix() michael@0: { michael@0: NOT_IMPLEMENTED(); michael@0: return 0; michael@0: } michael@0: michael@0: /** Delete a matrix previously allocated by newMatrix() michael@0: */ michael@0: void michael@0: anp_matrix_deleteMatrix(ANPMatrix*) michael@0: { michael@0: NOT_IMPLEMENTED(); michael@0: } michael@0: michael@0: michael@0: ANPMatrixFlag michael@0: anp_matrix_getFlags(const ANPMatrix*) michael@0: { michael@0: NOT_IMPLEMENTED(); michael@0: return 0; michael@0: } michael@0: michael@0: michael@0: void michael@0: anp_matrix_copy(ANPMatrix* dst, const ANPMatrix* src) michael@0: { michael@0: NOT_IMPLEMENTED(); michael@0: } michael@0: michael@0: michael@0: void michael@0: anp_matrix_get3x3(const ANPMatrix*, float[9]) michael@0: { michael@0: NOT_IMPLEMENTED(); michael@0: } michael@0: michael@0: void michael@0: anp_matrix_set3x3(ANPMatrix*, const float[9]) michael@0: { michael@0: NOT_IMPLEMENTED(); michael@0: } michael@0: michael@0: michael@0: void michael@0: anp_matrix_setIdentity(ANPMatrix*) michael@0: { michael@0: NOT_IMPLEMENTED(); michael@0: } michael@0: michael@0: void michael@0: anp_matrix_preTranslate(ANPMatrix*, float tx, float ty) michael@0: { michael@0: NOT_IMPLEMENTED(); michael@0: } michael@0: michael@0: void michael@0: anp_matrix_postTranslate(ANPMatrix*, float tx, float ty) michael@0: { michael@0: NOT_IMPLEMENTED(); michael@0: } michael@0: michael@0: void michael@0: anp_matrix_preScale(ANPMatrix*, float sx, float sy) michael@0: { michael@0: NOT_IMPLEMENTED(); michael@0: } michael@0: michael@0: void michael@0: anp_matrix_postScale(ANPMatrix*, float sx, float sy) michael@0: { michael@0: NOT_IMPLEMENTED(); michael@0: } michael@0: michael@0: void michael@0: anp_matrix_preSkew(ANPMatrix*, float kx, float ky) michael@0: { michael@0: NOT_IMPLEMENTED(); michael@0: } michael@0: michael@0: void michael@0: anp_matrix_postSkew(ANPMatrix*, float kx, float ky) michael@0: { michael@0: NOT_IMPLEMENTED(); michael@0: } michael@0: michael@0: void michael@0: anp_matrix_preRotate(ANPMatrix*, float degrees) michael@0: { michael@0: NOT_IMPLEMENTED(); michael@0: } michael@0: michael@0: void michael@0: anp_matrix_postRotate(ANPMatrix*, float degrees) michael@0: { michael@0: NOT_IMPLEMENTED(); michael@0: } michael@0: michael@0: void michael@0: anp_matrix_preConcat(ANPMatrix*, const ANPMatrix*) michael@0: { michael@0: NOT_IMPLEMENTED(); michael@0: } michael@0: michael@0: void michael@0: anp_matrix_postConcat(ANPMatrix*, const ANPMatrix*) michael@0: { michael@0: NOT_IMPLEMENTED(); michael@0: } michael@0: michael@0: michael@0: bool michael@0: anp_matrix_invert(ANPMatrix* dst, const ANPMatrix* src) michael@0: { michael@0: NOT_IMPLEMENTED(); michael@0: return false; michael@0: } michael@0: michael@0: void michael@0: anp_matrix_mapPoints(ANPMatrix*, float dst[], const float src[], michael@0: int32_t count) michael@0: { michael@0: NOT_IMPLEMENTED(); michael@0: } michael@0: michael@0: michael@0: void InitMatrixInterface(ANPMatrixInterfaceV0 *i) { michael@0: _assert(i->inSize == sizeof(*i)); michael@0: ASSIGN(i, newMatrix); michael@0: ASSIGN(i, deleteMatrix); michael@0: ASSIGN(i, getFlags); michael@0: ASSIGN(i, copy); michael@0: ASSIGN(i, get3x3); michael@0: ASSIGN(i, set3x3); michael@0: ASSIGN(i, setIdentity); michael@0: ASSIGN(i, preTranslate); michael@0: ASSIGN(i, postTranslate); michael@0: ASSIGN(i, preScale); michael@0: ASSIGN(i, postScale); michael@0: ASSIGN(i, preSkew); michael@0: ASSIGN(i, postSkew); michael@0: ASSIGN(i, preRotate); michael@0: ASSIGN(i, postRotate); michael@0: ASSIGN(i, preConcat); michael@0: ASSIGN(i, postConcat); michael@0: ASSIGN(i, invert); michael@0: ASSIGN(i, mapPoints); michael@0: } michael@0: michael@0: