recp/gpu

Naming Conventions

recp opened this issue · 2 comments

recp commented
// 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?

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:

recp commented

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