Making a graphic Library

What do I need to know to make my own graphic library in c++?? I heard something about ASM, but I don’t know what it is…