Jump to content

Fester

Members
  • Posts

    20
  • Joined

  • Last visited

Everything posted by Fester

  1. SceneBuilder myScene = new SceneBuilder(); myScene.Atmosphere();
  2. I'm pretty sure Structs in C# / .Net CAN... Implement Property accessors, define custom operators, and have custom constructors In fact, I have the Visual Studio object browser open now and I can see a number of Structs that implement at least one or more of these features: E.G. System.Drawing.Point, System.Drawing.Color and System.Drawing.Rectangle.
  3. My understanding of C# structs is that they will be allocated on the stack rather than the heap which in some situations may offer some speed increases. I think the recommendation is for types that should be treat like value types to be defined as structs (Usually mathematical types like points, vectors etc) and to be kept under 16 bytes (don't quote me on this). I think the main speed increase will be seen in tight loops where you need to allocate a lot of these types at once as there will be no need to allocate the memory on the heap and resolve the references. Other than that the actual code for the type will not change so unless you are seeing any performance problems using these types, changing them from classes to structs now is just premature optimisation.
  4. Laurens: I tried that before posting. unless I was doing it wrong it didn't actually appear to do anything at all. I tried various combinations including -s and +s (both before and after the name of the script file)as well as with the number 1 after +s as shown in the wiki.
  5. Roland: I tried what you suggested and it doesn't work, but thank you for the response anyway. Even though Engine.exe is a console application there must be some way of hiding the window as it doesn't appear when running scripts from the script editor (as mentioned in the first post by gordonramp). An alternative would be to write an engine.exe from scratch as a windows application which accepts a Lua script file as a command line argument but I am not sure how to code this.
  6. I would also be interested in knowing how to disable this window. I have read through all the Lua posts on the forums, viewed all tutorials and checked the wiki and can see no mention of how to get rid of this window. I suspected it may be disabled via a command line switch but it is not mentioned in the wiki. Can this window be disabled?
  7. File Name: Abstract Game Framework File Submitter: Fester File Submitted: 03 Jan 2010 File Updated: 03 Jan 2010 File Category: BlitzMax Code This module provides a framework for building games using Blitzmax. Note that the module does not provide any Leadwerks Engine specific implementation details as it is designed to be a lightweight, generic framework. The types in the module can be easily sub-classed to provide any Leadwerks engine specific implementation details. EDIT: I have uploaded a new version of the file which now includes another module which provides an example that uses Leadwerks Engine. Just unzip, drop into your Blitzmax mod directory and build documentation. NOTE: no source code is currently supplied with this module - It was placed in this category so that Blitzmax user could locate it. Constructive criticism appreciated. Click here to download this file
  8. That was the approach I was planning on taking but I thought it would be worthwhile to check if I was able to use scripts to customise the editor. Thank You.
  9. Perhaps another programming forum could be added for GLSL code? Doh, Just noticed the materials, Textures & Shaders forum for this.
  10. Is it possible to customise the editor to allow customisation of global game settings that may be specific to my game? E.G. in the editor under Tools>Options, under the Configuration tab can I add more options that would be specific to my game? E.G. other post processing effects, or options to the set the graphics mode of my game outside of the editor? Also, I have noticed under the UI tab there are options to set the Main Menu, Script Menu and the toolbar. I have tried changing these settings but nothing appears to happen. What is the purpose of these options?
×
×
  • Create New...