Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 16420

Converting draw calls to Texture2D in raylib

$
0
0

I want to apply some shader effects to a couple of draw calls using raylib, but I haven't found ways of implementing shaders without a texture.

I was wondering if I could refactor the function below to work as a Texture2D, and if so, how could I go about doing that?

void drawBoard(Color lineColor, Color boardColor){  ClearBackground(Color(boardColor));  DrawRectangleV( (Vector2){294, 100}, (Vector2){7, 600}, Color(lineColor));  DrawRectangleV( (Vector2){494, 100}, (Vector2){7, 600}, Color(lineColor));  DrawRectangle(100, 294, 600, 7, Color(lineColor));  DrawRectangle(100, 494, 600, 7, Color(lineColor));}

Viewing all articles
Browse latest Browse all 16420

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>