コード例 #1
0
ファイル: APlane.hpp プロジェクト: imclab/AnimeRAster
		APlane( uint32_t width, uint32_t height, uint8_t depth=8 )
			:	width(width), height(height), depth(depth), data( width*height, ValType() ) {
				middle = ValType( pow( 2, depth-1 ) );
			}
コード例 #2
0
ファイル: grid.hpp プロジェクト: RoryHiggins/4x
	void assign(unsigned int width_, unsigned int height_, const ValType &clearval = ValType())
	{
		width = width_;
		height = height_;
		values.assign(width*height, clearval);
	}
コード例 #3
0
ファイル: WriterUtils.cpp プロジェクト: ingowald/llvm-project
void wasm::writeGlobalType(raw_ostream &OS, const WasmGlobalType &Type) {
  // TODO: Update WasmGlobalType to use ValType and remove this cast.
  writeValueType(OS, ValType(Type.Type), "global type");
  writeU8(OS, Type.Mutable, "global mutable");
}
コード例 #4
0
ファイル: grid.hpp プロジェクト: RoryHiggins/4x
	void assign(const ValType &clearval = ValType())
	{
		values.assign(width*height, clearval);
	}