Applied exactly the same colours as posted in the ticket description.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4942 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: a6d375c3a94a282c5530f98e0cd04e31415c7d29
Former-commit-id: 23834c7f01bb76cebfcf1c9a8be61a6fa4eb1b0f
Added multitexture channels to methods used by terrainSplitOb().
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4938 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: ebacd2d34692fc9875f910fb229740d49512cffb
Former-commit-id: 878d10f60c27f035dc1a8341bfbe9c786fad4e52
o moved found_a_tri to it's local scope
o renamed numtri to numSurf and removed usage of it, where it is not the
number of surfaces
o moved bare creation of ob_t to own method
o up to now inits mem to zero and max,min values appropriately
o refactored a for-loop
o added comments
o moved init of textarray and calculation for spacial extend to own methods
o reordered init of temporary object
o moved texture name copying to own method
o added ob's min/max default init to obInitSpacialExtend()
o renamed triIndex to oldSurftoNewObjMap
o renamed numNewSurf to numNewObjs: false name before
o removed numob: covered by for-loop variable already
o gave temporary point/normal arrays variable size instead of fixed to some
number
o renamed some variables
o put all multitexture setting stuff to own methods.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4937 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: e0d5a524d351a481902483b14d2137e584c66ece
Former-commit-id: d6c9fe12c245f7baedb6400f3aaa0ae7b3f80d3d
o terrainSplitOb(): too much space allocated for vertex, norm and snorm arrays in new object.
o in createSingleTexChannelArrays() too much space for texture array is allocated
o assumption was that it contains 3 * num surfaces entries
o but it's actually only numvertice * 2 entries
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4936 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 11d5639f3783e89acaab31237ccb061c491d04b3
Former-commit-id: 9e158c8ea04cb9107b6000c8f56c880e8b87dd73
o renamed variables k, fi, fj and moved to more local scope
o renamed i to curNewObj
o renamed triIndice to numNewObjs
o renamed j and moved to more local scopes
o renamed oldva to storedPtIdxArr: holds the indices of stored points
in the new object
o renamed n to curNewPtIdx: is the current index in the temporal point
storage
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4934 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 7f3fb3a15e7fddee66ef8935a7abe20a9939c6b9
Former-commit-id: 26f78dc8bb288f08bb79ecc4bf4f23280e979dcd
o loadAC() and loadACo(): ret set, but didn't check it and abort apropriately
o mergeSplitted(): numtri used only if specific define set
o main(): fake_argv not used, seems like debugging: commented out
o others: simply not used in any senseful way
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4933 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 0f947ac886893049904834b10c910e62eda93a11
Former-commit-id: d958f00e97f2c63edbfe6ca99f144bac8aa51b27
IMPORTANT: started putting variables to their local scope
o i.e. the code is not compatible to C99 anymore
o but has extension .cpp and is compiled with C++ compiler anyway
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4932 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 50b42a23f22d7000fd1cf909b9b7dfcbe83ae6aa
Former-commit-id: ac2a1297c6a7c0ed43459dc62d1255f220f583f7
Empties new player name editbox when clicked, so it won't show 'Enter Name'
Note however, that if leaved blank, it stores the new player with name '-- No One --'
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4921 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 755171f00988e601a2c85369b170fb68f7ec0e98
Former-commit-id: 31acab93bf8004029065d9d5d03ac4ff66966cf7
o renamed and simplified allocTexChannelArrays() method
o added copying of texture names of additional channels
o added copying of vertex and texture coord arrays of additional channels
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4871 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 461c009f4bc34fd8e6b59c1dd797082eab4be2cf
Former-commit-id: 5d139ef6f45670b2a624028f9189a855ceff9134
Now the splitting of texture channel arrays is encapsulated in
separate functions. This way adding new texture channels
for splitting is done mostly outside of splitOb() itself.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4870 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: d8a5924d34ca4a93171dc77f352edfed47b96d97
Former-commit-id: ede10ea47eb3869d34a060aa4f6d986af8549968
o copySingleVertexData() to copy data of a single vertex b/w objects
o clearSavedInVertexArrayEntry() to clear the saved flag in all texture channels of vertexarrays
o allocTexChannelArrays() to create vertexarray and textarray for a given channel in the target object
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4869 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: bc148a8d95dccd059d959551b397bcdabe22c420
Former-commit-id: 6f60ce66dd91768e69116eb2c8bd1f35d888e17b