forked from bartvdbraak/blender
286c2ca80b
* cache for low res (deactivating high res for now) * new way of view3d rendering of smoke (no longer 3 axes) -using 3dtexture now (introduced into gpu/intern) * introducing LZO and LZMA libs into extern (makefiles missing for now) * reducing memory usage after simulating for the frame ended (freeing temporary buffers) * splitting smoke into 2 modifier for the cache-sake (it cannot handle more than 1 cache on the same modifier-index) * no color on gui anymore * fixing non-power-of-2 resolutions (hopefully) * fixing select-deselect of domain drawing bug * fixing drawobject.c coding style (making Ton happy) ;-) HINT #1: If scons doesn't work -> cmakefiles are up-to-date, couldn't test scons (but i tried to mantain them, too) CODERS HINT #1: we really need a way to disable adding all modifiers through "Add Modifiers" dropdown! WARNING #1: before applying this commit, deactivate your SMOKE DOMAIN in your old files and save them then. You can open them then savely after that. WARNING #2: File and cache format of smoke can be changed, this is not final!
75 lines
1.2 KiB
C
75 lines
1.2 KiB
C
/* 7zFile.h -- File IO
|
|
2008-11-22 : Igor Pavlov : Public domain */
|
|
|
|
#ifndef __7Z_FILE_H
|
|
#define __7Z_FILE_H
|
|
|
|
#ifdef _WIN32
|
|
#define USE_WINDOWS_FILE
|
|
#endif
|
|
|
|
#ifdef USE_WINDOWS_FILE
|
|
#include <windows.h>
|
|
#else
|
|
#include <stdio.h>
|
|
#endif
|
|
|
|
#include "Types.h"
|
|
|
|
|
|
/* ---------- File ---------- */
|
|
|
|
typedef struct
|
|
{
|
|
#ifdef USE_WINDOWS_FILE
|
|
HANDLE handle;
|
|
#else
|
|
FILE *file;
|
|
#endif
|
|
} CSzFile;
|
|
|
|
void File_Construct(CSzFile *p);
|
|
WRes InFile_Open(CSzFile *p, const char *name);
|
|
WRes OutFile_Open(CSzFile *p, const char *name);
|
|
WRes File_Close(CSzFile *p);
|
|
|
|
/* reads max(*size, remain file's size) bytes */
|
|
WRes File_Read(CSzFile *p, void *data, size_t *size);
|
|
|
|
/* writes *size bytes */
|
|
WRes File_Write(CSzFile *p, const void *data, size_t *size);
|
|
|
|
WRes File_Seek(CSzFile *p, Int64 *pos, ESzSeek origin);
|
|
WRes File_GetLength(CSzFile *p, UInt64 *length);
|
|
|
|
|
|
/* ---------- FileInStream ---------- */
|
|
|
|
typedef struct
|
|
{
|
|
ISeqInStream s;
|
|
CSzFile file;
|
|
} CFileSeqInStream;
|
|
|
|
void FileSeqInStream_CreateVTable(CFileSeqInStream *p);
|
|
|
|
|
|
typedef struct
|
|
{
|
|
ISeekInStream s;
|
|
CSzFile file;
|
|
} CFileInStream;
|
|
|
|
void FileInStream_CreateVTable(CFileInStream *p);
|
|
|
|
|
|
typedef struct
|
|
{
|
|
ISeqOutStream s;
|
|
CSzFile file;
|
|
} CFileOutStream;
|
|
|
|
void FileOutStream_CreateVTable(CFileOutStream *p);
|
|
|
|
#endif
|