Lines Matching refs:rsc

49 void rsrBindTexture(Context *rsc, ProgramFragment *pf, uint32_t slot, Allocation *a) {  in rsrBindTexture()  argument
52 pf->bindTexture(rsc, slot, a); in rsrBindTexture()
55 void rsrBindConstant(Context *rsc, ProgramFragment *pf, uint32_t slot, Allocation *a) { in rsrBindConstant() argument
58 pf->bindAllocation(rsc, a, slot); in rsrBindConstant()
61 void rsrBindConstant(Context *rsc, ProgramVertex *pv, uint32_t slot, Allocation *a) { in rsrBindConstant() argument
64 pv->bindAllocation(rsc, a, slot); in rsrBindConstant()
67 void rsrBindSampler(Context *rsc, ProgramFragment *pf, uint32_t slot, Sampler *s) { in rsrBindSampler() argument
70 pf->bindSampler(rsc, slot, s); in rsrBindSampler()
73 void rsrBindProgramStore(Context *rsc, ProgramStore *ps) { in rsrBindProgramStore() argument
75 rsc->setProgramStore(ps); in rsrBindProgramStore()
78 void rsrBindProgramFragment(Context *rsc, ProgramFragment *pf) { in rsrBindProgramFragment() argument
80 rsc->setProgramFragment(pf); in rsrBindProgramFragment()
83 void rsrBindProgramVertex(Context *rsc, ProgramVertex *pv) { in rsrBindProgramVertex() argument
85 rsc->setProgramVertex(pv); in rsrBindProgramVertex()
88 void rsrBindProgramRaster(Context *rsc, ProgramRaster *pr) { in rsrBindProgramRaster() argument
90 rsc->setProgramRaster(pr); in rsrBindProgramRaster()
93 void rsrBindFrameBufferObjectColorTarget(Context *rsc, Allocation *a, uint32_t slot) { in rsrBindFrameBufferObjectColorTarget() argument
95 rsc->mFBOCache.bindColorTarget(rsc, a, slot); in rsrBindFrameBufferObjectColorTarget()
96 rsc->mStateVertex.updateSize(rsc); in rsrBindFrameBufferObjectColorTarget()
99 void rsrBindFrameBufferObjectDepthTarget(Context *rsc, Allocation *a) { in rsrBindFrameBufferObjectDepthTarget() argument
101 rsc->mFBOCache.bindDepthTarget(rsc, a); in rsrBindFrameBufferObjectDepthTarget()
102 rsc->mStateVertex.updateSize(rsc); in rsrBindFrameBufferObjectDepthTarget()
105 void rsrClearFrameBufferObjectColorTarget(Context *rsc, uint32_t slot) { in rsrClearFrameBufferObjectColorTarget() argument
106 rsc->mFBOCache.bindColorTarget(rsc, nullptr, slot); in rsrClearFrameBufferObjectColorTarget()
107 rsc->mStateVertex.updateSize(rsc); in rsrClearFrameBufferObjectColorTarget()
110 void rsrClearFrameBufferObjectDepthTarget(Context *rsc) { in rsrClearFrameBufferObjectDepthTarget() argument
111 rsc->mFBOCache.bindDepthTarget(rsc, nullptr); in rsrClearFrameBufferObjectDepthTarget()
112 rsc->mStateVertex.updateSize(rsc); in rsrClearFrameBufferObjectDepthTarget()
115 void rsrClearFrameBufferObjectTargets(Context *rsc) { in rsrClearFrameBufferObjectTargets() argument
116 rsc->mFBOCache.resetAll(rsc); in rsrClearFrameBufferObjectTargets()
117 rsc->mStateVertex.updateSize(rsc); in rsrClearFrameBufferObjectTargets()
124 void rsrVpLoadProjectionMatrix(Context *rsc, const rsc_Matrix *m) { in rsrVpLoadProjectionMatrix() argument
125 rsc->getProgramVertex()->setProjectionMatrix(rsc, m); in rsrVpLoadProjectionMatrix()
128 void rsrVpLoadModelMatrix(Context *rsc, const rsc_Matrix *m) { in rsrVpLoadModelMatrix() argument
129 rsc->getProgramVertex()->setModelviewMatrix(rsc, m); in rsrVpLoadModelMatrix()
132 void rsrVpLoadTextureMatrix(Context *rsc, const rsc_Matrix *m) { in rsrVpLoadTextureMatrix() argument
133 rsc->getProgramVertex()->setTextureMatrix(rsc, m); in rsrVpLoadTextureMatrix()
136 void rsrPfConstantColor(Context *rsc, ProgramFragment *pf, in rsrPfConstantColor() argument
139 pf->setConstantColor(rsc, r, g, b, a); in rsrPfConstantColor()
142 void rsrVpGetProjectionMatrix(Context *rsc, rsc_Matrix *m) { in rsrVpGetProjectionMatrix() argument
143 rsc->getProgramVertex()->getProjectionMatrix(rsc, m); in rsrVpGetProjectionMatrix()
151 void rsrDrawPath(Context *rsc, Path *sm) { in rsrDrawPath() argument
155 void rsrDrawMesh(Context *rsc, Mesh *sm) { in rsrDrawMesh() argument
157 if (!rsc->setupCheck()) { in rsrDrawMesh()
160 sm->render(rsc); in rsrDrawMesh()
163 void rsrDrawMeshPrimitive(Context *rsc, Mesh *sm, uint32_t primIndex) { in rsrDrawMeshPrimitive() argument
165 if (!rsc->setupCheck()) { in rsrDrawMeshPrimitive()
168 sm->renderPrimitive(rsc, primIndex); in rsrDrawMeshPrimitive()
171 void rsrDrawMeshPrimitiveRange(Context *rsc, Mesh *sm, uint32_t primIndex, in rsrDrawMeshPrimitiveRange() argument
174 if (!rsc->setupCheck()) { in rsrDrawMeshPrimitiveRange()
177 sm->renderPrimitiveRange(rsc, primIndex, start, len); in rsrDrawMeshPrimitiveRange()
180 void rsrMeshComputeBoundingBox(Context *rsc, Mesh *sm, in rsrMeshComputeBoundingBox() argument
184 sm->computeBBox(rsc); in rsrMeshComputeBoundingBox()
199 void rsrColor(Context *rsc, float r, float g, float b, float a) { in rsrColor() argument
200 ProgramFragment *pf = rsc->getProgramFragment(); in rsrColor()
201 pf->setConstantColor(rsc, r, g, b, a); in rsrColor()
204 void rsrPrepareClear(Context *rsc) { in rsrPrepareClear() argument
205 rsc->mFBOCache.setup(rsc); in rsrPrepareClear()
206 rsc->setupProgramStore(); in rsrPrepareClear()
209 uint32_t rsrGetWidth(Context *rsc) { in rsrGetWidth() argument
210 return rsc->getWidth(); in rsrGetWidth()
213 uint32_t rsrGetHeight(Context *rsc) { in rsrGetHeight() argument
214 return rsc->getHeight(); in rsrGetHeight()
217 void rsrDrawTextAlloc(Context *rsc, Allocation *a, int x, int y) { in rsrDrawTextAlloc() argument
218 const char *text = (const char *)rsc->mHal.funcs.allocation.lock1D(rsc, a); in rsrDrawTextAlloc()
220 rsc->mStateFont.renderText(text, allocSize, x, y); in rsrDrawTextAlloc()
221 rsc->mHal.funcs.allocation.unlock1D(rsc, a); in rsrDrawTextAlloc()
224 void rsrDrawText(Context *rsc, const char *text, int x, int y) { in rsrDrawText() argument
226 rsc->mStateFont.renderText(text, textLen, x, y); in rsrDrawText()
245 void rsrMeasureTextAlloc(Context *rsc, Allocation *a, in rsrMeasureTextAlloc() argument
248 const char *text = (const char *)rsc->mHal.funcs.allocation.lock1D(rsc, a); in rsrMeasureTextAlloc()
251 rsc->mStateFont.measureText(text, textLen, &metrics); in rsrMeasureTextAlloc()
253 rsc->mHal.funcs.allocation.unlock1D(rsc, a); in rsrMeasureTextAlloc()
256 void rsrMeasureText(Context *rsc, const char *text, in rsrMeasureText() argument
260 rsc->mStateFont.measureText(text, textLen, &metrics); in rsrMeasureText()
264 void rsrBindFont(Context *rsc, Font *font) { in rsrBindFont() argument
266 rsi_ContextBindFont(rsc, font); in rsrBindFont()
269 void rsrFontColor(Context *rsc, float r, float g, float b, float a) { in rsrFontColor() argument
270 rsc->mStateFont.setFontColor(r, g, b, a); in rsrFontColor()