gpu icon indicating copy to clipboard operation
gpu copied to clipboard

Naming Conventions

Open recp opened this issue 5 years ago • 2 comments

// 1.
gpu_frontface(rce, GPUWindingCounterClockwise);
gpu_cullmode(rce, GPUCullModeBack);
gpu_renderstate(rce, renderState);
gpu_depthstencil(rce, depthStencilState);

// 2.      
GPUFrontFace(rce, GPUWindingCounterClockwise);
GPUCullMode(rce, GPUCullModeBack);
GPURenderState(rce, renderState);
GPUDepthStencil(rce, depthStencilState);

// 3.
gpuFrontFace(rce, GPUWindingCounterClockwise);
gpuCullMode(rce, GPUCullModeBack);
gpuRenderState(rce, renderState);
gpuDepthStencil(rce, depthStencilState);

// 4.
gpu_set_frontface(rce, GPUWindingCounterClockwise);
gpu_set_cullmode(rce, GPUCullModeBack);
gpu_set_renderstate(rce, renderState);
gpu_set_depthstencil(rce, depthStencilState);
     
// 5. 
GPUSetFrontFace(rce, GPUWindingCounterClockwise);
GPUSetCullMode(rce, GPUCullModeBack);
GPUSetRenderState(rce, renderState);
GPUSetDepthStencil(rce, depthStencilState);

// 6.
gpuSetFrontFace(rce, GPUWindingCounterClockwise);
gpuSetCullMode(rce, GPUCullModeBack);
gpuSetRenderState(rce, renderState);
gpuSetDepthStencil(rce, depthStencilState);

Which one?

recp avatar Jul 30 '20 07:07 recp

I like 3

the first chunck , gpu, gotta be in lowercaps. if u r writting something with this lib, then the thinking would be:

gpu ... thinking ... functiontouse

the functiontouse should be title case, maybe there are similar functions, for example like ActionLower or ActionUpper.

Anyway, this is just my preference and feedback c:

explosion-mental avatar Sep 18 '22 20:09 explosion-mental

@explosion-mental many thanks for your feedback[s].

recp avatar Sep 19 '22 07:09 recp