Jump to content

ChrisMAN

Members
  • Posts

    174
  • Joined

  • Last visited

Posts posted by ChrisMAN

  1. I would suggest using the c language, not c++.A good few people on the forum claim to be using c++ but when you look at their code its actually c. The wiki examples are mostly in c not c++. Its easy to learn and you can turn to c++ when you are ready.

     

    EDIT: I would reccomend Code::blocks with Mingw compiler for an easy aproach.

     

    This is good advise. If you learn c++ without learning c first you will not understand some of the stuff that is going on.

     

    Learn C the hard way is pretty tight. http://c.learncodeth...ay.org/book/ C is a lot less bull****; simple and effective. I love linus torvolds rant on c++.

     

    I hope that Josh exposes the rest of the lua bindings in the engine header file for leadwerks 3. We could see some really cool C + lua stuff.

  2. Working on it this weekend.

     

    You mean your Intel graphics chip actually runs Leadwerks Engine 2?

     

    It runs on my laptop which has an intel hd 4000 and an nvidia 620. The intel hd 4000 worked until i upgraded to windows 8. The intel hd 4000 runs about 50% perf as the 620. If I don't run in 1920x1080 it is very tolerable. 800x600 usually gets me 60fps for my crappy game.

  3. Error messages are nice but...

     

    I feel the exact opposite about c++ being good for beginners. C++ is nothing but syntax sugar for blocks of memory. A beginner should be able to get results while building a foundation in problem solving without having to take on the the problems of compilers, pointers, templates. I don't know why all c++ devs decided they had to abbreviate variables and template names but it is pretty stupid. Try finding beginner information on c++ iterators. The documentation styles for c++ are arcane and ineffective. Some of the new c++11 stuff really breathes fresh air into it but if you are coding in visual studio you won't see those features for a while.

     

     

    To make matters worse a lot of developers get stuck in structural programming languages like c++ before they learn object oriented ones, or functional styles of programming.

     

    To contrast it is a foundational language that is great for making video games. It teaches algorithmic thinking and performance. It is undergoing a bit of a renaissance and will be a fantastic environment once the right people get involved. Most importantly its rise will hearken the end of the dark ages of programming, the framework languages (.NET, Java) as c++ is becoming a viable substitute.

     

    This is coming from a bitter man who has spent way too much time trying to get mingw to work on a microsoft ecosystem and praying to the gods for binaries to drop from the sky.

    • Upvote 1
  4. I don't quite understand what you are asking. If i understand this is a straight forward way about it.

     

    local settings = db:nrows("Select * from settings")[1]  or CreateSettings() -- singleton row
    function SetSetting(field, value)
    db:exec("UPDATE settings SET " .. field .. " = " value")
    settings[field] = value
    end
    

  5. I might be due for another pass through the scripts folder. All of that stuff is there. The class script is probably the most important. The code reads really well. I have wondered how much of a perf boost could be gained on the lua side by doing proper prototypical inheritance instead of creating extra functions everywhere.

  6. Buffers are a chunk of memory on the video card. You can perform commands such as drawing that will modify buffer. You can render a buffer to the screen or save it as a texture. It is a pretty abstract concept.

    • Upvote 1
  7. LE does support alpha. You have to set blend mode to 1. http://www.leadwerks...?title=SetBlend

     

    I have been using the 2d drawing commands to do my interfaces. http://www.leadwerks...itle=2D_Drawing

     

    I have a library that i have written that is about 85% to release an alpha. le_gui is sadly very complex. I am very happy with it but it sits around 1600 lines of code. It supports event propagation, stylesheets, a rich styles inheritence system, z sorting/index, control parenting, render caching, clipping, a good positioning system via top, left, bottom, right and most importantly a nice api. It is not documented and there are no examples so it might not even be worth your time to look at it. If you need an example of some code that will be able to handle complex interactions, it could be inspiring.

×
×
  • Create New...