📄 flames.c
字号:
/*
* MATLAB Compiler: 3.0
* Date: Thu Jun 21 20:40:43 2001
* Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on"
* "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O"
* "array_indexing:on" "-O" "optimize_conditionals:on" "-B" "sgl" "-m" "-W"
* "main" "-L" "C" "-t" "-T" "link:exe" "-h" "libmmfile.mlib" "-W" "mainhg"
* "libmwsglm.mlib" "flames.m"
*/
#include "flames.h"
#include "hot.h"
#include "libmatlbm.h"
#include "libmmfile.h"
#include "libmwsglm.h"
static mxChar _array1_[7] = { 'M', 'e', 'n', 'u', 'b', 'a', 'r' };
static mxArray * _mxarray0_;
static mxChar _array3_[4] = { 'N', 'o', 'n', 'e' };
static mxArray * _mxarray2_;
static mxChar _array5_[11] = { 'N', 'u', 'm', 'b', 'e', 'r',
'T', 'i', 't', 'l', 'e' };
static mxArray * _mxarray4_;
static mxChar _array7_[3] = { 'O', 'f', 'f' };
static mxArray * _mxarray6_;
static mxChar _array9_[4] = { 'N', 'a', 'm', 'e' };
static mxArray * _mxarray8_;
static mxChar _array11_[4] = { 'D', 'e', 'm', 'o' };
static mxArray * _mxarray10_;
static mxChar _array13_[8] = { 'U', 's', 'e', 'r', 'D', 'a', 't', 'a' };
static mxArray * _mxarray12_;
static mxArray * _mxarray14_;
static mxChar _array16_[12] = { 'D', 'o', 'u', 'b', 'l', 'e',
'B', 'u', 'f', 'f', 'e', 'r' };
static mxArray * _mxarray15_;
static mxChar _array18_[2] = { 'O', 'n' };
static mxArray * _mxarray17_;
static mxChar _array20_[8] = { 'R', 'e', 'n', 'd', 'e', 'r', 'e', 'r' };
static mxArray * _mxarray19_;
static mxChar _array22_[8] = { 'P', 'a', 'i', 'n', 't', 'e', 'r', 's' };
static mxArray * _mxarray21_;
static mxChar _array24_[6] = { 'R', 'e', 's', 'i', 'z', 'e' };
static mxArray * _mxarray23_;
static mxChar _array26_[5] = { 'L', 'a', 'b', 'e', 'l' };
static mxArray * _mxarray25_;
static mxChar _array28_[5] = { '&', 'F', 'i', 'l', 'e' };
static mxArray * _mxarray27_;
static mxChar _array30_[5] = { 'E', '&', 'x', 'i', 't' };
static mxArray * _mxarray29_;
static mxChar _array32_[8] = { 'C', 'a', 'l', 'l', 'b', 'a', 'c', 'k' };
static mxArray * _mxarray31_;
static mxChar _array34_[23] = { 's', 'e', 't', '(', 'g', 'c', 'f', ',',
0x0027, 'U', 's', 'e', 'r', 'D', 'a', 't',
'a', 0x0027, ',', 0x0027, 0x0027, ')', ';' };
static mxArray * _mxarray33_;
static mxArray * _mxarray35_;
static mxChar _array37_[10] = { 'f', 'l', 'a', 'm', 'e',
's', '.', 'm', 'a', 't' };
static mxArray * _mxarray36_;
static mxArray * _mxarray38_;
static mxArray * _mxarray39_;
static mxArray * _mxarray40_;
static mxArray * _mxarray41_;
static mxArray * _mxarray42_;
static mxChar _array44_[12] = { 'C', 'D', 'a', 't', 'a', 'M',
'a', 'p', 'p', 'i', 'n', 'g' };
static mxArray * _mxarray43_;
static mxChar _array46_[6] = { 'D', 'i', 'r', 'e', 'c', 't' };
static mxArray * _mxarray45_;
static mxArray * _mxarray47_;
static double _array49_[3] = { 0.0, 0.0, 0.0 };
static mxArray * _mxarray48_;
static mxChar _array51_[3] = { 'o', 'f', 'f' };
static mxArray * _mxarray50_;
static mxChar _array53_[5] = { 'i', 'm', 'a', 'g', 'e' };
static mxArray * _mxarray52_;
static mxChar _array55_[4] = { 'Y', 'L', 'i', 'm' };
static mxArray * _mxarray54_;
static mxChar _array57_[5] = { 'U', 'n', 'i', 't', 's' };
static mxArray * _mxarray56_;
static mxChar _array59_[6] = { 'P', 'i', 'x', 'e', 'l', 's' };
static mxArray * _mxarray58_;
static mxChar _array61_[8] = { 'P', 'o', 's', 'i', 't', 'i', 'o', 'n' };
static mxArray * _mxarray60_;
static mxArray * _mxarray62_;
static mxArray * _mxarray63_;
static mxArray * _mxarray64_;
static mxArray * _mxarray65_;
static mxChar _array67_[10] = { 'S', 'c', 'r', 'e', 'e',
'n', 'S', 'i', 'z', 'e' };
static mxArray * _mxarray66_;
static mxChar _array69_[5] = { 'C', 'o', 'l', 'o', 'r' };
static mxArray * _mxarray68_;
static mxChar _array71_[3] = { 'a', 'l', 'l' };
static mxArray * _mxarray70_;
static mxChar _array73_[5] = { 'C', 'D', 'a', 't', 'a' };
static mxArray * _mxarray72_;
static mxArray * _mxarray74_;
void InitializeModule_flames(void) {
_mxarray0_ = mclInitializeString(7, _array1_);
_mxarray2_ = mclInitializeString(4, _array3_);
_mxarray4_ = mclInitializeString(11, _array5_);
_mxarray6_ = mclInitializeString(3, _array7_);
_mxarray8_ = mclInitializeString(4, _array9_);
_mxarray10_ = mclInitializeString(4, _array11_);
_mxarray12_ = mclInitializeString(8, _array13_);
_mxarray14_ = mclInitializeDouble(1.0);
_mxarray15_ = mclInitializeString(12, _array16_);
_mxarray17_ = mclInitializeString(2, _array18_);
_mxarray19_ = mclInitializeString(8, _array20_);
_mxarray21_ = mclInitializeString(8, _array22_);
_mxarray23_ = mclInitializeString(6, _array24_);
_mxarray25_ = mclInitializeString(5, _array26_);
_mxarray27_ = mclInitializeString(5, _array28_);
_mxarray29_ = mclInitializeString(5, _array30_);
_mxarray31_ = mclInitializeString(8, _array32_);
_mxarray33_ = mclInitializeString(23, _array34_);
_mxarray35_ = mclInitializeDoubleVector(0, 0, (double *)NULL);
_mxarray36_ = mclInitializeString(10, _array37_);
_mxarray38_ = mclInitializeDouble(.01);
_mxarray39_ = mclInitializeDouble(201.0);
_mxarray40_ = mclInitializeDouble(2.0);
_mxarray41_ = mclInitializeDouble(140.0);
_mxarray42_ = mclInitializeDouble(60.0);
_mxarray43_ = mclInitializeString(12, _array44_);
_mxarray45_ = mclInitializeString(6, _array46_);
_mxarray47_ = mclInitializeDouble(200.0);
_mxarray48_ = mclInitializeDoubleVector(1, 3, _array49_);
_mxarray50_ = mclInitializeString(3, _array51_);
_mxarray52_ = mclInitializeString(5, _array53_);
_mxarray54_ = mclInitializeString(4, _array55_);
_mxarray56_ = mclInitializeString(5, _array57_);
_mxarray58_ = mclInitializeString(6, _array59_);
_mxarray60_ = mclInitializeString(8, _array61_);
_mxarray62_ = mclInitializeDouble(15.0);
_mxarray63_ = mclInitializeDouble(1.5);
_mxarray64_ = mclInitializeDouble(30.0);
_mxarray65_ = mclInitializeDouble(0.0);
_mxarray66_ = mclInitializeString(10, _array67_);
_mxarray68_ = mclInitializeString(5, _array69_);
_mxarray70_ = mclInitializeString(3, _array71_);
_mxarray72_ = mclInitializeString(5, _array73_);
_mxarray74_ = mclInitializeDouble(3.0);
}
void TerminateModule_flames(void) {
mxDestroyArray(_mxarray74_);
mxDestroyArray(_mxarray72_);
mxDestroyArray(_mxarray70_);
mxDestroyArray(_mxarray68_);
mxDestroyArray(_mxarray66_);
mxDestroyArray(_mxarray65_);
mxDestroyArray(_mxarray64_);
mxDestroyArray(_mxarray63_);
mxDestroyArray(_mxarray62_);
mxDestroyArray(_mxarray60_);
mxDestroyArray(_mxarray58_);
mxDestroyArray(_mxarray56_);
mxDestroyArray(_mxarray54_);
mxDestroyArray(_mxarray52_);
mxDestroyArray(_mxarray50_);
mxDestroyArray(_mxarray48_);
mxDestroyArray(_mxarray47_);
mxDestroyArray(_mxarray45_);
mxDestroyArray(_mxarray43_);
mxDestroyArray(_mxarray42_);
mxDestroyArray(_mxarray41_);
mxDestroyArray(_mxarray40_);
mxDestroyArray(_mxarray39_);
mxDestroyArray(_mxarray38_);
mxDestroyArray(_mxarray36_);
mxDestroyArray(_mxarray35_);
mxDestroyArray(_mxarray33_);
mxDestroyArray(_mxarray31_);
mxDestroyArray(_mxarray29_);
mxDestroyArray(_mxarray27_);
mxDestroyArray(_mxarray25_);
mxDestroyArray(_mxarray23_);
mxDestroyArray(_mxarray21_);
mxDestroyArray(_mxarray19_);
mxDestroyArray(_mxarray17_);
mxDestroyArray(_mxarray15_);
mxDestroyArray(_mxarray14_);
mxDestroyArray(_mxarray12_);
mxDestroyArray(_mxarray10_);
mxDestroyArray(_mxarray8_);
mxDestroyArray(_mxarray6_);
mxDestroyArray(_mxarray4_);
mxDestroyArray(_mxarray2_);
mxDestroyArray(_mxarray0_);
}
static void mlfFlames_animate_it(mxArray * theImage, mxArray * theLogo);
static void mlxFlames_animate_it(int nlhs,
mxArray * plhs[],
int nrhs,
mxArray * prhs[]);
static void Mflames(void);
static void Mflames_animate_it(mxArray * theImage, mxArray * theLogo);
static mexFunctionTableEntry local_function_table_[1]
= { { "animate_it", mlxFlames_animate_it, 2, 0, NULL } };
_mexLocalFunctionTable _local_function_table_flames
= { 1, local_function_table_ };
/*
* The function "mlfFlames" contains the normal interface for the "flames"
* M-function from file "c:\matlab6p5\matlab编译器\flames\flames.m" (lines
* 1-40). This function processes any input arguments and passes them to the
* implementation version of the function, appearing above.
*/
void mlfFlames(void) {
mlfEnterNewContext(0, 0);
Mflames();
mlfRestorePreviousContext(0, 0);
}
/*
* The function "mlxFlames" contains the feval interface for the "flames"
* M-function from file "c:\matlab6p5\matlab编译器\flames\flames.m" (lines
* 1-40). The feval function calls the implementation version of flames through
* this function. This function processes any input arguments and passes them
* to the implementation version of the function, appearing above.
*/
void mlxFlames(int nlhs, mxArray * plhs[], int nrhs, mxArray * prhs[]) {
if (nlhs > 0) {
mlfError(
mxCreateString(
"Run-time Error: File: flames Line: 1 Column: "
"1 The function \"flames\" was called with mor"
"e than the declared number of outputs (0)."),
NULL);
}
if (nrhs > 0) {
mlfError(
mxCreateString(
"Run-time Error: File: flames Line: 1 Column: "
"1 The function \"flames\" was called with mor"
"e than the declared number of inputs (0)."),
NULL);
}
mlfEnterNewContext(0, 0);
Mflames();
mlfRestorePreviousContext(0, 0);
}
/*
* The function "mlfFlames_animate_it" contains the normal interface for the
* "flames/animate_it" M-function from file
* "c:\matlab6p5\matlab编译器\flames\flames.m" (lines 40-94). This function
* processes any input arguments and passes them to the implementation version
* of the function, appearing above.
*/
static void mlfFlames_animate_it(mxArray * theImage, mxArray * theLogo) {
mlfEnterNewContext(0, 2, theImage, theLogo);
Mflames_animate_it(theImage, theLogo);
mlfRestorePreviousContext(0, 2, theImage, theLogo);
}
/*
* The function "mlxFlames_animate_it" contains the feval interface for the
* "flames/animate_it" M-function from file
* "c:\matlab6p5\matlab编译器\flames\flames.m" (lines 40-94). The feval
* function calls the implementation version of flames/animate_it through this
* function. This function processes any input arguments and passes them to the
* implementation version of the function, appearing above.
*/
static void mlxFlames_animate_it(int nlhs,
mxArray * plhs[],
int nrhs,
mxArray * prhs[]) {
mxArray * mprhs[2];
int i;
if (nlhs > 0) {
mlfError(
mxCreateString(
"Run-time Error: File: flames/animate_it Line: 40 Colu"
"mn: 1 The function \"flames/animate_it\" was called w"
"ith more than the declared number of outputs (0)."),
NULL);
}
if (nrhs > 2) {
mlfError(
mxCreateString(
"Run-time Error: File: flames/animate_it Line: 40 Col"
"umn: 1 The function \"flames/animate_it\" was called"
" with more than the declared number of inputs (2)."),
NULL);
}
for (i = 0; i < 2 && i < nrhs; ++i) {
mprhs[i] = prhs[i];
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -