📄 _adi.gls
字号:
GL_Studio_Version: 3.0.1003
DocumentPreferences:
{
LineColor: 0 0 0 255
FillColor: 255 255 255 255
BlendColor: 255 255 255 255
TextColor: 0 0 0 255
GridColor: 0 0 0 255
AxesColor: 0 0 0 255
LineWidth: 1
LineStipplePattern: 65535
LineStippleMultiplier: 1
GridSpacing: 1
SnapToGrid: 1
ShowAxes: 1
ShowGrid: 0
PreviewAnimations: 1
LightingEnabled: 0
Shading: FLAT
DepthTest: 2
AntiAlias: 0
AlphaMode: ALPHA_MODE_256_LEVEL
PolygonMode: POLY_MODE_OUTLINE
PolygonEnd: POLY_CLOSED
PolygonOffset: 0
TextureIndex: -1
TextureRepeat: 1
TextureMap: TEXTURE_MAP_REPLACE
TextureMinFilter: TEXTURE_FILTER_LINEAR
TextureMagFilter: TEXTURE_FILTER_LINEAR
FontName: Arial
Spacing: SPACING_PROPORTIONAL
HJustification: TEXT_ALIGN_CENTER
FixedSize: 18
FixedSpacing: 10
FontStrikethrough: 0
FontWordWrap: 0
TextOutline: 0
TextBackground: 0
TextInverseVideo: 0
TextVertical: 0
RemoveBackfaces: 0
BlinkMode: 0
PickMode: 1
Material: 0
BlinkRate: 2
Window:
{
X: 384
Y: 110
W: 550
H: 550
AzimuthAngle: 0
IncidenceAngle: 0
TwistAngle: 0
View: VIEW_XY
CenterX: 226.9998932
CenterY: 261.000061
Scale: 1
}
}
DisplayFrame: EditorDisplayFrame
{
ComponentHeaderFile: _ADI.h
Width: 480
Height: 512
Title: Untitled
InitialX: 0
InitialY: 0
MaxWidth: -1
MaxHeight: -1
MinWidth: -1
MinHeight: -1
Resizable: 1
HasBorder: 1
MainFileName:
DerivedClass: _ADIClass
StandaloneHeaderFile: _ADIApp.h
StandaloneSourceFile: _ADIApp.cpp
StandaloneClassInstance: _ADI
ComponentSourceFile: _ADI.cpp
ComponentUserBaseClass: 0
ClassDerivedFrom:
ClassDerivedFromInit:
XWindowsHeaderFile: _ADIXWin.h
XWindowsSourceFile: _ADIXWin.cpp
XWindowsClassInstance: _ADI
RootName: _ADI
FillInFromRoot: 1
GeneratedSourcePath: .\source\
ExtraCodeSource:
ExtraCodeHeader: #include\s"glsutil.h"
MainLoopSource:
MainInitSource:
ClassCodeSource: #$STRING_START$#
#$ITEM_TYPE$#2#$TYPE$#void#$NAME$#Initialize#$ARGS$##$BODY$##$GEN_BODY$#1#$PPP$#0#$COMMENT$#
#$ITEM_TYPE$#3#$TYPE$#void#$NAME$#Calculate#$ARGS$#double time#$BODY$#objects->Group::Calculate(time); // Do not remove (for normal operations)
if(_testing)
{
Pitch( RampFloat( time / .7, -25, 40 ) );
Roll( RampFloat( time / .8, -30, 30 ) );
}
#$GEN_BODY$#1#$PPP$#0#$COMMENT$##$STRING_END$#
Properties:
{
Item:
{
FillIn: 1
Name: Pitch
Type: float
Args: 0.0
VariablePPP: 0
SetPPP: 0
GetPPP: 0
MemberVariableUsed: 1
MemberVariableName: _pitch
SetMethodUsed: 1
SetMethodName: Pitch
SetMethodBody: #$STRING_START$#_pitch = value;
adiSphere->DynamicRotate(value,X_AXIS);#$STRING_END$#
GetMethodUsed: 1
GetMethodName: Pitch
}
Item:
{
FillIn: 1
Name: Roll
Type: float
Args: 0.0
VariablePPP: 0
SetPPP: 0
GetPPP: 0
MemberVariableUsed: 1
MemberVariableName: _roll
SetMethodUsed: 1
SetMethodName: Roll
SetMethodBody: #$STRING_START$#_roll = value;
adiSphere->DynamicRotate(value, Z_AXIS);
#$STRING_END$#
GetMethodUsed: 1
GetMethodName: Roll
}
Item:
{
FillIn: 1
Name: Testing
Type: bool
Args: true
VariablePPP: 0
SetPPP: 0
GetPPP: 0
MemberVariableUsed: 1
MemberVariableName: _testing
SetMethodUsed: 1
SetMethodName: Testing
SetMethodBody: #$STRING_START$#_testing = value;
adiDevice->Testing(value);#$STRING_END$#
GetMethodUsed: 1
GetMethodName: Testing
}
}
ClassDeclarations:
GenerateComments: 1
GenerateSeparateMain: 0
DCS_Length: 75
Projection: ORTHOGRAPHIC
Buffering: DOUBLE_BUFFER
DepthBuffer: 1
StencilBuffer: 0
AccumBuffer: 0
AlphaBuffer: 0
Multisample: 0
FullScreen: 0
ViewCulling: 1
RedrawType: REDRAW_CONSTANT
ApplicationType: RAW_COMPONENT
FrameRate: 30
BackgroundColor: 255 255 255 255
SoundFiles:
{
}
TexturePalette:
{
0:
{
Filename: ./textures/adi_ball.png
GenerateInline: 1
CompressionFactor: 75
CompressedSize: 56368
ImageCodec: GLS_CODEC_LZ77
ReverseAlpha: 0
}
1:
{
Filename: ./textures/adi_panel.png
GenerateInline: 1
CompressionFactor: 75
CompressedSize: 405229
ImageCodec: GLS_CODEC_LZ77
ReverseAlpha: 1
}
}
MaterialPalette: 1
0 1 51 51 51 255 204 204 204 255 0 0 0 255 0 0 0 255 0 "Default Material"
InitialEyePointName: <Default Ortho>
RuntimeAvailableAttributes: 17
ObjectClass: GlsLightSource
{
Name: light
Location: 233 264 0
Visible: 1
Pickable: 1
RotationOrigin: 0 0 0
Rotation: 0 0 0
DynamicTranslate: 0 0 0
DynamicScale: 1 1 1
DCSMatrix: 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1
LineWidth: 1
CullBackFace: 0
AlphaMode: ALPHA_MODE_256_LEVEL
AntiAlias: 0
DepthTest: 2
Color: 0 0 0 255
TextureIndex: -1
TextureRepeat: 1
TextureMap: TEXTURE_MAP_REPLACE
BlendColor: 255 255 255 255
TextureMinFilter: TEXTURE_FILTER_LINEAR
TextureMagFilter: TEXTURE_FILTER_LINEAR
PolygonMode: POLY_MODE_FILLED
PolygonEnd: POLY_CLOSED
PolygonOffset: 0
Shading: FLAT
LineStippleMultiplier: 1
LineStipplePattern: 65535
Blink: 0
BlinkRate: 2
LightingEnabled: 0
MaterialIndex: 0
Vertices: 6
0 0 0 255 255 255 255
0 0 1 255 255 255 255
-25 -25 -50 255 255 255 255
25 -25 -50 255 255 255 255
25 25 -50 255 255 255 255
-25 25 -50 255 255 255 255
TexturePoints:
0 0 0
0 0 0
0 0 0
0 0 0
SourceAmbient: 0 0 0 255
SourceDiffuse: 255 255 255 255
SourceSpecular: 255 255 255 255
SpotCutoff: 180
SpotExponent: 0
ConstantAttenuation: 1
LinearAttenuation: 0
QuadraticAttenuation: 0
LightType: LIGHT_INFINITE
ProtectionMode: PUBLIC
Locked: 0
EndMarker: light
}
ObjectClass: GlsSphere
{
Name: adiSphere
Location: 233 265 -197
Visible: 1
Pickable: 1
RotationOrigin: 0 0 0
Rotation: 0 0 0
DynamicTranslate: 0 0 0
DynamicScale: 1 1 1
DCSMatrix: 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1
LineWidth: 1
CullBackFace: 0
AlphaMode: ALPHA_MODE_256_LEVEL
AntiAlias: 0
DepthTest: 1
Color: 0 0 0 255
TextureIndex: 0
TextureRepeat: 1
TextureMap: TEXTURE_MAP_MODULATE
BlendColor: 255 255 255 255
TextureMinFilter: TEXTURE_FILTER_LINEAR
TextureMagFilter: TEXTURE_FILTER_LINEAR
PolygonMode: POLY_MODE_FILLED
PolygonEnd: POLY_CLOSED
PolygonOffset: 0
Shading: GOURAUD
LineStippleMultiplier: 1
LineStipplePattern: 65535
Blink: 0
BlinkRate: 2
LightingEnabled: 1
MaterialIndex: 0
TexturePoints:
-190 -196 -196
-190 -196 196
190 -196 196
190 -196 -196
SliceStartDeg: 0
SliceEndDeg: 360
StackStartDeg: 0
StackEndDeg: 180
ObjectColor: 255 255 255 255
Radii:
2.384921117e-006 -2.384921117e-006 -196
190 2.813127877e-014 2.311913249e-006
0 -196 2.384921117e-006
Stacks: 50
Slices: 50
TextureMappingType: SPHERE
ProtectionMode: PUBLIC
Locked: 0
EndMarker: adiSphere
}
ObjectClass: GLPolygon
{
Name: adiPanel
Location: 238 255 0
Visible: 1
Pickable: 1
RotationOrigin: 0 0 0
Rotation: 0 0 0
DynamicTranslate: 0 0 0
DynamicScale: 1 1 1
DCSMatrix: 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1
LineWidth: 1
CullBackFace: 0
AlphaMode: ALPHA_MODE_256_LEVEL
AntiAlias: 0
DepthTest: 2
Color: 255 10 48 255
TextureIndex: 1
TextureRepeat: 1
TextureMap: TEXTURE_MAP_REPLACE
BlendColor: 255 255 255 255
TextureMinFilter: TEXTURE_FILTER_LINEAR
TextureMagFilter: TEXTURE_FILTER_LINEAR
PolygonMode: POLY_MODE_FILLED
PolygonEnd: POLY_CLOSED
PolygonOffset: 0
Shading: FLAT
LineStippleMultiplier: 1
LineStipplePattern: 65535
Blink: 0
BlinkRate: 2
LightingEnabled: 0
MaterialIndex: 0
Vertices: 4
-240 -256 0 249 255 244 255
240 -256 0 249 255 244 255
240 256 0 249 255 244 255
-240 256 0 249 255 244 255
TexturePoints:
775 -249 0
-249 -249 0
-249 262.9997559 0
775 262.9997559 0
TextureCoords: 4
0.0087890625 -0.013671875 0
0.4775390625 -0.013671875 0
0.4775390625 0.9863286018 0
0.0087890625 0.9863286018 0
Normals: 4
0 0 1
0 0 1
0 0 1
0 0 1
ProtectionMode: PUBLIC
Locked: 0
EndMarker: adiPanel
}
ObjectClass: GLPolygon
{
Name: horizonLine
Location: 227 289 0
Visible: 1
Pickable: 1
RotationOrigin: 0 0 0
Rotation: 0 0 0
DynamicTranslate: 0 0 0
DynamicScale: 1 1 1
DCSMatrix: 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1
LineWidth: 1
CullBackFace: 0
AlphaMode: ALPHA_MODE_256_LEVEL
AntiAlias: 0
DepthTest: 2
Color: 0 0 0 255
TextureIndex: 1
TextureRepeat: 1
TextureMap: TEXTURE_MAP_REPLACE
BlendColor: 255 255 255 255
TextureMinFilter: TEXTURE_FILTER_LINEAR
TextureMagFilter: TEXTURE_FILTER_LINEAR
PolygonMode: POLY_MODE_FILLED
PolygonEnd: POLY_CLOSED
PolygonOffset: 0
Shading: FLAT
LineStippleMultiplier: 1
LineStipplePattern: 65535
Blink: 0
BlinkRate: 2
LightingEnabled: 0
MaterialIndex: 0
Vertices: 4
-177 -20 0 255 255 255 255
177 -20 0 255 255 255 255
177 20 0 255 255 255 255
-177 20 0 255 255 255 255
TexturePoints:
373 -500 0
-651 -500 0
-651 11.99975586 0
373 11.99975586 0
TextureCoords: 4
0.462890625 0.9375004768 0
0.80859375 0.9375004768 0
0.80859375 1.015625477 0
0.462890625 1.015625477 0
Normals: 4
0 0 1
0 0 1
0 0 1
0 0 1
ProtectionMode: PUBLIC
Locked: 0
EndMarker: horizonLine
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -