ZGameEditor Documentation
Community |
ZApplicationZApplicationThe application component. This component is automatically created when you start a new project. PropertiesOnLoadedThis list is executed once at every program start. Put your application initialization components here. OnCloseThis is called when your application exits. StatesA list of AppState components that the application uses. OnUpdateCalled once between every frame update. OnRenderA list of render commands. OnBeginRenderPassThis is called before each render pass. LightsA list of Light components that the application uses. ContentThe application content list. Put your game components here. CaptionA text string that is displayed in the window caption of your application. DeltaTimeRead only. The time in seconds that has passed since last frame was rendered. Use this value when updating model positions in expressions to make your game frame-rate independent. Example of expression using the deltatime-property: "CurrentModel.Position.X+=1*App.DeltaTime;". TimeRead only. Time in seconds since application was started. FpsCounterRead only. The current number of frames per second. This value can be displayed on screen using the RenderText-component and is useful for detecting performance issues. CurrentRenderPassRead only. Can be used to define different behaviour on multiple render passes. MousePositionRead only. X and Y coordinates of the current mouse position, in -1 to 1 range. MouseWheelDelta-readOnlyReturns integer value 1 or -1 depending on wheel direction. ClearScreenModeIf set to 0 the the screen is cleared before every frame update. If a value other than zero, then the screen is not cleared. Use this for feedback effects. See the Particles-sample project for how to use this property. RenderPassesDefines the number of passes. The default is 1 WindowHandle-readOnlyThis is the handle to the main window. Use this as a parameter when you need to call Win32-API using a external library. ClearColorThe color that the screen will be cleared with. Default black. AmbientLightColorGlobal ambient light value - Default 0.4, 0.4, 0.4 FullScreenSet this property to make your application run in fullscreen mode. You can override this property with the following command line switches:
FrameRateStyleSet to one of preset values:
FixedFrameRateControls the desired framerate when FrameRateStyle is set to Fixed. ScreenModeSelect the screen resolution for your application. ShowOptionsDialogSet this property to display a dialogbox where the user can choose screen resolution and fullscreen-option on startup of your game. This features currently only works on Windows and Linux. CustomScreenWidth/CustomScreenHeightIf these properties contains other values than zero, this screensize is used instead of the ScreenMode property. Use this for setting custom windowed modes such as a vertical shooting game. CameraPositionThe current position of the camera. Animate this property to make scrolling games. Example ZExpression - "App.CameraPosition.X=App.Time * 0.5;" Move the screen slowly to the left. CameraRotationThe current rotation of the camera in X,Y and Z axis. LightPositionThe position or direction of the OpenGL light. The default OpenGL light is directional down the Z-axis. ViewportRatioSet to one of preset values:
CustomViewportRatioSet a value here to use a custom viewport-ratio. FOVCamera Field Of View. Default value is 45 degrees. ClipNearThe near clipping distance of OpenGL graphics. Objects that are closer to the camera than this value will not be drawn. ClipFarThe far clipping distance of OpenGL graphics. Objects that are further away from the camera than this value will not be drawn. MouseVisibleSet this to keep the mouse cursor visible. EscapeToQuitUncheck this to disable user pressing Escape-key to quit your application. IconLoad a ICO-file to this property for customizing the application icon of the generated exe-file. Note: The icon is only inserted in compressed Windows exe-files, not for other platforms. PreviewClearColorChoose which color to use as a background in the preview-window of the designer. Available in designer only. |