MCPcopy Create free account
hub / github.com/defold/defold / SetUp

Method SetUp

engine/dlib/src/test/test_buffer.cpp:43–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 dmBuffer::HBuffer buffer;
42protected:
43 void SetUp() override {
44 dmBuffer::NewContext();
45
46 dmBuffer::StreamDeclaration streams_decl[] = {
47 {dmHashString64("position"), dmBuffer::VALUE_TYPE_UINT8, 3},
48 {dmHashString64("texcoord"), dmBuffer::VALUE_TYPE_UINT8, 1}
49 };
50 dmBuffer::Create(4, streams_decl, 2, &buffer);
51 }
52
53 void TearDown() override {
54 dmBuffer::Destroy(buffer);

Callers

nothing calls this directly

Calls 2

NewContextFunction · 0.50
CreateFunction · 0.50

Tested by

no test coverage detected