示例#1
0
		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
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);
	}