[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] clarification of render_obj.c and gradient themes



On Sat, Mar 17, 2012 at 6:49 AM, Helmut Karlowski
<helmut.karlowski@ish.de> wrote:
> Am 16.03.2012, 15:13 Uhr, schrieb Paul Wratt <paul.wratt@gmail.com>:
>
>
>> in render_obj.c at line 136 there is a #define in the middle of a
>> struct definition
>>
>> struct theme
>> {
>>        struct xa_data_hdr h;
>>
>> #define NAES3D                  1
>>        unsigned long rflags;
>
>
> I do not see any problem here (except that rflags is useless - does anyone
> know what REND_NAES3D might mean?).
>
I would guess its from one of Ozk's wild forays into the (NAES)
unknown, maybe he was trying to reproduce some NAES styles.. It seems
to be centered around 3D style drawing

>
>> static struct xa_gradient box_gradient =
>> static struct xa_gradient box_gradient2 =
>> static struct xa_gradient text_gradient =
>>
>> those last 3 should (also?) be in each gradient file for theming
>> continuity
>
> They are not used and thus not needed - XaAES stops reading at EOF. But if
> you want you can add them to the other gradient-files (disable with
> n_steps=-1).
>
I'll add them to current gradient files as how they are set in
render_obj.c - so there is no conflict if structs are also defined in
gradient file (I guess not if they are working for you)

when you say "not needed" and "disable with .." do you mean that they
are not rendered anywhere, or just not with "the other" gradients

>
>> Lastly, some clarification of individual gradients...
>>
>>  .. snip .. (will verify these later)
>
>> I'll put the resulting info (along with gradient method types and
>> options) into a doc that can then be used to build a (visual) config
>> tool, and help people understand how t change themes more thoroughly
>> (in the meantime)
>
> Good. I thought it could help if someone would create an archive that
> contains all gradient-sources and makefile along with a compiler. That would
> enable people without compiler-knowlegde to just type a simple command to
> create a gradient-file and copy it into the XaAES-gradient-directory.
>
I wanted to write it (and some other config tools) in GFA because I
could use the actual gradient code from XaAES as external objects, but
GFA is not CF friendly, which defeats the purpose of most of the
config tools, that plus my computer is being an
"anti-develop-for-any-os martre" atm

> Do you mean that one:
> http://sparemint.org/cgi-bin/cvsweb/~checkout~freemint/doc/xaaes/themes.txt
>
yeah, ta, I thought it was in km.src, and I thought it had more info,
I'll add some gradient info to it..