Search found 1883 matches

by VilleK
Sun Jan 14, 2018 7:46 pm
Forum: Releases
Topic: Inline functions
Replies: 5
Views: 85

Re: Inline functions

Another important advantage of inline functions is when one or several of the arguments to a function is a constant, this adds more opportunities for optimization. Using the function "min" from above: float x=min(1,2); After inlining the compiler transforms to this: float x=1 <= 2 ? 1 : 2;...
by VilleK
Sat Jan 13, 2018 10:57 am
Forum: Releases
Topic: Inline functions
Replies: 5
Views: 85

Re: Flooding the console

rrTea wrote:The current build prints out the whole ZGE project to console every time a project is loaded or launched in Preview.

Aha, sorry this was debug info I forgot to exclude. Fixed now. Please download again.
by VilleK
Fri Jan 12, 2018 12:28 pm
Forum: Releases
Topic: Inline functions
Replies: 5
Views: 85

Re: Inline functions

Thanks for testing, this should be fixed now: http://www.zgameeditor.org/files/ZGameEditor_beta.zip
by VilleK
Thu Jan 11, 2018 1:18 pm
Forum: Releases
Topic: Inline functions
Replies: 5
Views: 85

Inline functions

New build: http://www.zgameeditor.org/files/ZGameEditor_beta.zip You can now tag functions with the "inline" keyword to inline them. inline float min(float v1, float v2) { return v1 <= v2 ? v1 : v2; } This means that every function calling this will inline the function itself , so there is...
by VilleK
Sat Jan 06, 2018 8:50 pm
Forum: General discussion
Topic: Call component from BaseModel
Replies: 3
Views: 62

Re: Call component from BaseModel

There are some limitations about basemodel inheritance. Try this variant that uses a Vec3 variable to hold the color and a library to set it. <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="ZGameEditor application" FileVersion=&q...
by VilleK
Sun Dec 17, 2017 11:41 am
Forum: Your projects
Topic: Butterfly
Replies: 75
Views: 10356

Re: Butterfly

Looks very nice! Another feature that adds professionalism and polish to this game.
by VilleK
Wed Dec 13, 2017 1:27 pm
Forum: Feature requests
Topic: Setting UI font size
Replies: 8
Views: 424

Re: Setting UI font size

I've noticed this too, it is annoying. I will fix it.
by VilleK
Mon Dec 04, 2017 9:15 am
Forum: General discussion
Topic: Pausing
Replies: 3
Views: 168

Re: Pausing

I think some of Jphs games have pause feature but I don't know how he implemented it. I would probably make a AppState called "PlayingState" and another "PausedState" but I can guess there are some issues like those you explained, yes. If there was a full "engine stop" ...
by VilleK
Sat Dec 02, 2017 10:40 am
Forum: General discussion
Topic: Works only in Preview
Replies: 6
Views: 218

Re: Works only in Preview

The beta is updated with my change that makes it work 100% in preview, but I notice now that it is still black in exe-file. I notice something unusual with your project though, you do some rendering in OnBeginRenderPass. I would try to just set things up in OnBeginRenderPass and then do the actual r...
by VilleK
Sat Dec 02, 2017 10:21 am
Forum: Feature requests
Topic: RenderText string equivalent of TextFloatReference
Replies: 10
Views: 349

Re: RenderText string equivalent of TextFloatReference

I get the same problem here, I must have done something wrong while rebuilding, will check.
by VilleK
Fri Dec 01, 2017 12:40 pm
Forum: General discussion
Topic: Works only in Preview
Replies: 6
Views: 218

Re: Works only in Preview

I could reproduce this problem, and I think I've fixed it here: http://www.zgameeditor.org/files/ZGameEditor_beta.zip
by VilleK
Fri Dec 01, 2017 12:39 pm
Forum: Feature requests
Topic: RenderText string equivalent of TextFloatReference
Replies: 10
Views: 349

Re: RenderText string equivalent of TextFloatReference

Rebuilt all now. Renamed property to "TextExpression" and moved it upwards in the list: http://www.zgameeditor.org/files/ZGameEditor_beta.zip
by VilleK
Fri Dec 01, 2017 8:39 am
Forum: General discussion
Topic: Works only in Preview
Replies: 6
Views: 218

Re: Works only in Preview

Are you using the ZGameEditor.exe I provided in the RenderText thread? That will generate incorrect binaries until I've rebuilt the runtime engines to match the changes.
by VilleK
Thu Nov 30, 2017 10:42 am
Forum: Feature requests
Topic: RenderText string equivalent of TextFloatReference
Replies: 10
Views: 349

Re: RenderText string equivalent of TextFloatReference

Good. Note that it supports full expressions, so if you have a string variable "S", then you can set TextStringRef to "Title: " + S, etc. I'll rebuild the engines in a day or two.

Go to advanced search