📄 regiscol.h
字号:
//-----------------------------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <io.h>
#include <string.h>
#include "streamio.h"
#include "..\..\3Dlib\fileio.h"
#include "..\..\3Dlib\defines.h"
#include "..\..\3Dlib\inline.h"
//-----------------------------------------------------------------------------
struct ColorPatchRecord {
GLint vtxnum;
GLbyte polyname[256];
GLcolor color;
};
struct ColorTableTree {
GLuint color;
ColorTableTree *left, *right;
};
struct ColorTableList {
GLuint color;
ColorTableList *next;
};
//-----------------------------------------------------------------------------
GLint readHOT (char *filename);
void Cleanup ();
void Setup ();
GLint readHeader ();
GLint ReadColorPatch (char *str);
GLint readVerticesList ();
GLint countTotalString (char *string);
GLint readBeadList ();
GLbeadTree *readBeadData ();
GLint findString (char *string);
GLbeadTree *allocateBead ();
void CleanBeadTree (GLbeadTree *bead);
GLint InsertColor (GLuint color);
GLint InsertColor (GLcolor *col);
void RemoveColor (ColorTableTree *colptr);
GLint FindColorInTree (ColorTableTree *colptr, GLuint color);
void InsertColorInTree (ColorTableTree *colptr, ColorTableTree *col);
//-----------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -